Package io.permazen.core
Class EnumArrayField
A field that contains an array (having one or more dimensions) of values chosen from
an ordered list of unique
String
identifiers.
Two instances of this class are considered compatible only when their ordered lists of identifiers and dimensions are identical.
-
Method Summary
Modifier and TypeMethodDescriptionGet the base encoding.int
Get the number of enum array dimensions.toString()
<R> R
visit
(FieldSwitch<R> target) Apply visitor pattern.Methods inherited from class io.permazen.core.SimpleField
getCompositeIndexes, getEncoding, getFullName, getIndex, getParentField, getValue, hasDefaultValue, isIndexed, remapObjectId, remapsObjectId, setValue
Methods inherited from class io.permazen.core.Field
getKey, getObjType, getTypeToken
Methods inherited from class io.permazen.core.SchemaItem
getName, getSchema, getSchemaId, getStorageId
-
Method Details
-
getBaseType
Get the base encoding.- Returns:
- array base encoding
-
getDimensions
public int getDimensions()Get the number of enum array dimensions.- Returns:
- number of dimensions, a value from 1 to 255
-
visit
Description copied from class:Field
Apply visitor pattern.- Overrides:
visit
in classSimpleField<Object>
- Type Parameters:
R
- visitor return type- Parameters:
target
- target to invoke- Returns:
- return value from the method of
target
corresponding to this instance's type
-
toString
- Overrides:
toString
in classSimpleField<Object>
-