public class DefaultObjectFieldType extends BaseMetadataType implements ObjectFieldType
annotations
Constructor and Description |
---|
DefaultObjectFieldType(ObjectKeyType key,
MetadataType value,
boolean isRequired,
boolean isRepeated,
MetadataFormat metadataFormat,
Map<Class<? extends TypeAnnotation>,TypeAnnotation> annotations) |
Modifier and Type | Method and Description |
---|---|
void |
accept(MetadataTypeVisitor visitor)
Dispatches in a reflective way to the method with prefix "visit" with the specific type as argument.
|
ObjectKeyType |
getKey()
The key of this field
|
MetadataType |
getValue()
The value of this field
|
boolean |
isRepeated()
If this field can be present more than once in an object
|
boolean |
isRequired()
If the field is required or not
|
equals, getAnnotation, getAnnotations, getDescription, getMetadataFormat, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAnnotation, getAnnotations, getDescription, getMetadataFormat
public DefaultObjectFieldType(ObjectKeyType key, MetadataType value, boolean isRequired, boolean isRepeated, MetadataFormat metadataFormat, Map<Class<? extends TypeAnnotation>,TypeAnnotation> annotations)
public ObjectKeyType getKey()
ObjectFieldType
getKey
in interface ObjectFieldType
public MetadataType getValue()
ObjectFieldType
getValue
in interface ObjectFieldType
public boolean isRequired()
ObjectFieldType
isRequired
in interface ObjectFieldType
public boolean isRepeated()
ObjectFieldType
isRepeated
in interface ObjectFieldType
public void accept(MetadataTypeVisitor visitor)
MetadataType
visitObject(ObjectType objectType)
will be called when this type is an ObjectType.accept
in interface MetadataType
visitor
- The visitorCopyright © 2018. All rights reserved.