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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAnnotation, getAnnotations, getDescription, getMetadataFormatpublic DefaultObjectFieldType(ObjectKeyType key, MetadataType value, boolean isRequired, boolean isRepeated, MetadataFormat metadataFormat, Map<Class<? extends TypeAnnotation>,TypeAnnotation> annotations)
public ObjectKeyType getKey()
ObjectFieldTypegetKey in interface ObjectFieldTypepublic MetadataType getValue()
ObjectFieldTypegetValue in interface ObjectFieldTypepublic boolean isRequired()
ObjectFieldTypeisRequired in interface ObjectFieldTypepublic boolean isRepeated()
ObjectFieldTypeisRepeated in interface ObjectFieldTypepublic void accept(MetadataTypeVisitor visitor)
MetadataTypevisitObject(ObjectType objectType) will be called when this type is an ObjectType.accept in interface MetadataTypevisitor - The visitorCopyright © 2019 MuleSoft, Inc.. All rights reserved.