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
getSubFieldMethods inherited from class io.permazen.PermazenField
getConverter, getDeclaringAnnotation, getFullName, getGetter, getKey, getPermazenClass, visitMethods 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:PermazenFieldGet the Java value of this field in the given Java model object. Does not alter the schema of the object.- Specified by:
getValuein classPermazenField- Parameters:
pobj- object containing this field- Returns:
- this field's value in
pobj
-
getSubFields
Description copied from class:PermazenComplexFieldGet the sub-fields associated with this field.- Specified by:
getSubFieldsin classPermazenComplexField- Returns:
- this instance's sub-fields (in order)
-
getSchemaItem
Description copied from class:PermazenSchemaItemGet the corresonding core API database instance.- Overrides:
getSchemaItemin classPermazenComplexField- Returns:
- this instance's correpsonding
SchemaItem
-
getTypeToken
Description copied from class:PermazenFieldGet the type of this field.- Specified by:
getTypeTokenin classPermazenField- Returns:
- this field's type
-