public class JMapField extends JComplexField
JClass
.Modifier and Type | Method and Description |
---|---|
io.permazen.NavigableMapConverter<?,?,?,?> |
getConverter(JTransaction jtx)
Get a
Converter that converts this field's value from what the core database returns
to what the Java application expects, or null if no conversion is needed. |
JMapField |
getDeclaringAnnotation()
Get the
Annotation that declared this field. |
JSimpleField |
getKeyField()
Get the key sub-field.
|
JSimpleField |
getSubField(String name)
Get the sub-field with the given name.
|
List<JSimpleField> |
getSubFields()
Get the sub-fields associated with this field.
|
TypeToken<?> |
getTypeToken()
Get the type of this field.
|
NavigableMap<?,?> |
getValue(JObject jobj)
Get the Java value of this field in the given Java model object.
|
JSimpleField |
getValueField()
Get the value sub-field.
|
<R> R |
visit(JFieldSwitch<R> target)
Apply visitor pattern.
|
getName, getPermazen, getStorageId, toString
public JMapField getDeclaringAnnotation()
JField
Annotation
that declared this field.
If this field was auto-generated from an abstract
method with no annotation, a non-null Annotation
is still returned; it will have all default values.
getDeclaringAnnotation
in class JField
public JSimpleField getKeyField()
public JSimpleField getValueField()
public NavigableMap<?,?> getValue(JObject jobj)
JField
public <R> R visit(JFieldSwitch<R> target)
JField
public List<JSimpleField> getSubFields()
JComplexField
getSubFields
in class JComplexField
public JSimpleField getSubField(String name)
JComplexField
getSubField
in class JComplexField
name
- sub-field namepublic TypeToken<?> getTypeToken()
JField
getTypeToken
in class JField
public io.permazen.NavigableMapConverter<?,?,?,?> getConverter(JTransaction jtx)
JField
Converter
that converts this field's value from what the core database returns
to what the Java application expects, or null if no conversion is needed.getConverter
in class JField
jtx
- transactionConverter
from core API to Java, or null if no conversion is requiredCopyright © 2022. All rights reserved.