public class DefaultAttributeFieldType extends BaseMetadataType implements AttributeFieldType
annotations, BASE_REFLECTION_FIELDS| Constructor and Description |
|---|
DefaultAttributeFieldType(AttributeKeyType key,
MetadataType value,
boolean required,
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.
|
AttributeKeyType |
getKey()
The key of the attribute.
|
Field[] |
getReflectionComparableFields()
A list of the fields that define the identity of this class.
|
MetadataType |
getValue()
The value of the attribute
|
boolean |
isRequired()
If this attribute is required or not.
|
equals, getAnnotation, getAnnotations, getDescription, getMetadataFormat, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAnnotation, getAnnotations, getDescription, getMetadataFormatpublic DefaultAttributeFieldType(AttributeKeyType key, MetadataType value, boolean required, MetadataFormat metadataFormat, Map<Class<? extends TypeAnnotation>,TypeAnnotation> extensions)
public AttributeKeyType getKey()
AttributeFieldTypegetKey in interface AttributeFieldTypepublic MetadataType getValue()
AttributeFieldTypegetValue in interface AttributeFieldTypepublic boolean isRequired()
AttributeFieldTypeisRequired in interface AttributeFieldTypepublic void accept(MetadataTypeVisitor visitor)
MetadataTypevisitObject(ObjectType objectType) will be called when this type is an ObjectType.accept in interface MetadataTypevisitor - The visitorpublic 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 BaseMetadataTypeCopyright © 2022 MuleSoft, Inc.. All rights reserved.