public class DefaultObjectType extends BaseMetadataType implements ObjectType
annotations| Constructor and Description |
|---|
DefaultObjectType(Collection<ObjectFieldType> fields,
boolean ordered,
MetadataType openRestriction,
MetadataFormat metadataFormat,
Map<Class<? extends TypeAnnotation>,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
|
Optional<MetadataType> |
getOpenRestriction()
Returns the restriction if any specified for the open type.
|
boolean |
isOrdered()
If the list of fields must respect the order or not
|
String |
toString() |
equals, getAnnotation, getAnnotations, getDescription, getMetadataFormat, hashCodeclone, finalize, getClass, notify, notifyAll, wait, wait, waitisOpengetAnnotation, getAnnotations, getDescription, getMetadataFormatpublic DefaultObjectType(Collection<ObjectFieldType> fields, boolean ordered, MetadataType openRestriction, MetadataFormat metadataFormat, Map<Class<? extends TypeAnnotation>,TypeAnnotation> extensions)
public boolean isOrdered()
ObjectTypeisOrdered in interface ObjectTypepublic Optional<MetadataType> getOpenRestriction()
ObjectTypegetOpenRestriction 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 visitorpublic String toString()
toString in class BaseMetadataTypeCopyright © 2021 MuleSoft, Inc.. All rights reserved.