Package io.permazen
Class PermazenComplexField
java.lang.Object
io.permazen.PermazenSchemaItem
io.permazen.PermazenField
io.permazen.PermazenComplexField
- Direct Known Subclasses:
PermazenCollectionField
,PermazenMapField
Represents a complex field in a
PermazenClass
.-
Method Summary
Modifier and TypeMethodDescriptionComplexField<?>
Get the corresonding core API database instance.final PermazenSimpleField
getSubField
(String name) Get the sub-field with the given name.abstract List<PermazenSimpleField>
Get the sub-fields associated with this field.Methods inherited from class io.permazen.PermazenField
getConverter, getDeclaringAnnotation, getFullName, getGetter, getKey, getPermazenClass, getTypeToken, getValue, visit
Methods inherited from class io.permazen.PermazenSchemaItem
getName, getSchemaId, getStorageId, toString
-
Method Details
-
getSubFields
Get the sub-fields associated with this field.- Returns:
- this instance's sub-fields (in order)
-
getSubField
Get the sub-field with the given name.- Parameters:
name
- sub-field name- Returns:
- the sub-field with the specified name
- Throws:
IllegalArgumentException
- ifname
is invalid
-
getSchemaItem
Description copied from class:PermazenSchemaItem
Get the corresonding core API database instance.- Overrides:
getSchemaItem
in classPermazenField
- Returns:
- this instance's correpsonding
SchemaItem
-