public class DefaultObjectFieldType extends BaseMetadataType implements ObjectFieldType
annotations, BASE_REFLECTION_FIELDS| 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
|
Field[] |
getReflectionComparableFields()
A list of the fields that define the identity of this class.
|
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 Field[] getReflectionComparableFields()
ReflectionAwareComparable
Have in mind not exposing fields of class Pattern, for example, that only check for reference
equality (If that is not the desired behaviour).
getReflectionComparableFields in interface ReflectionAwareComparablegetReflectionComparableFields in class BaseMetadataTypepublic 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 © 2025 MuleSoft, Inc.. All rights reserved.