public interface ObjectType extends MetadataType
Modifier and Type | Method and Description |
---|---|
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.
|
default boolean |
isOpen()
If this object allows additional properties that are not being described in the list of fields.
|
boolean |
isOrdered()
If the list of fields must respect the order or not
|
accept, getAnnotation, getAnnotations, getDescription, getMetadataFormat
default boolean isOpen()
Optional<MetadataType> getOpenRestriction()
Collection<ObjectFieldType> getFields()
boolean isOrdered()
Optional<ObjectFieldType> getFieldByName(String propertyName)
propertyName
- The name of the propertyCopyright © 2018. All rights reserved.