Package io.permazen
Class PermazenCollectionField
java.lang.Object
io.permazen.PermazenSchemaItem
io.permazen.PermazenField
io.permazen.PermazenComplexField
io.permazen.PermazenCollectionField
- Direct Known Subclasses:
PermazenListField
,PermazenSetField
Represents a collection field in a
PermazenClass
.-
Method Summary
Modifier and TypeMethodDescriptionGet the element sub-field.CollectionField<?,
?> Get the corresonding core API database instance.Get the sub-fields associated with this field.TypeToken<?>
Get the type of this field.abstract Collection<?>
getValue
(PermazenObject pobj) Get the Java value of this field in the given Java model object.Methods inherited from class io.permazen.PermazenComplexField
getSubField
Methods inherited from class io.permazen.PermazenField
getConverter, getDeclaringAnnotation, getFullName, getGetter, getKey, getPermazenClass, visit
Methods inherited from class io.permazen.PermazenSchemaItem
getName, getSchemaId, getStorageId, toString
-
Method Details
-
getElementField
Get the element sub-field.- Returns:
- this instance's element sub-field
-
getValue
Description copied from class:PermazenField
Get the Java value of this field in the given Java model object. Does not alter the schema of the object.- Specified by:
getValue
in classPermazenField
- Parameters:
pobj
- object containing this field- Returns:
- this field's value in
pobj
-
getSubFields
Description copied from class:PermazenComplexField
Get the sub-fields associated with this field.- Specified by:
getSubFields
in classPermazenComplexField
- Returns:
- this instance's sub-fields (in order)
-
getSchemaItem
Description copied from class:PermazenSchemaItem
Get the corresonding core API database instance.- Overrides:
getSchemaItem
in classPermazenComplexField
- Returns:
- this instance's correpsonding
SchemaItem
-
getTypeToken
Description copied from class:PermazenField
Get the type of this field.- Specified by:
getTypeToken
in classPermazenField
- Returns:
- this field's type
-