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 PermazenSimpleFieldgetSubField(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, visitMethods 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- ifnameis invalid
-
getSchemaItem
Description copied from class:PermazenSchemaItemGet the corresonding core API database instance.- Overrides:
getSchemaItemin classPermazenField- Returns:
- this instance's correpsonding
SchemaItem
-