public class DefaultObjectType extends BaseMetadataType implements ObjectType
| Constructor and Description |
|---|
DefaultObjectType(Collection<ObjectFieldType> fields,
boolean ordered,
MetadataFormat metadataFormat,
Collection<TypeAnnotation> extensions) |
| 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.
|
Optional<ObjectFieldType> |
getFieldByName(String propertyName)
Searches a field that matches the specified name
|
Collection<ObjectFieldType> |
getFields()
The collection of all the fields
|
boolean |
isOrdered()
If the list of fields must respect the order or not
|
equals, getAnnotation, getAnnotations, getDescription, getMetadataFormat, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAnnotation, getAnnotations, getDescription, getMetadataFormatpublic DefaultObjectType(Collection<ObjectFieldType> fields, boolean ordered, MetadataFormat metadataFormat, Collection<TypeAnnotation> extensions)
public boolean isOrdered()
ObjectTypeisOrdered in interface ObjectTypepublic Collection<ObjectFieldType> getFields()
ObjectTypegetFields in interface ObjectTypepublic Optional<ObjectFieldType> getFieldByName(String propertyName)
ObjectTypegetFieldByName in interface ObjectTypepropertyName - The name of the propertypublic void accept(MetadataTypeVisitor visitor)
MetadataTypevisitObject(ObjectType objectType) will be called when this type is an ObjectType.accept in interface MetadataTypevisitor - The visitorCopyright © 2016 MuleSoft, Inc.. All rights reserved.