public class DefaultAttributeFieldType extends BaseMetadataType implements AttributeFieldType
annotations
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.
|
MetadataType |
getValue()
The value of the attribute
|
boolean |
isRequired()
If this attribute is required or not.
|
equals, getAnnotation, getAnnotations, getDescription, getMetadataFormat, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAnnotation, getAnnotations, getDescription, getMetadataFormat
public DefaultAttributeFieldType(AttributeKeyType key, MetadataType value, boolean required, MetadataFormat metadataFormat, Map<Class<? extends TypeAnnotation>,TypeAnnotation> extensions)
public AttributeKeyType getKey()
AttributeFieldType
getKey
in interface AttributeFieldType
public MetadataType getValue()
AttributeFieldType
getValue
in interface AttributeFieldType
public boolean isRequired()
AttributeFieldType
isRequired
in interface AttributeFieldType
public void accept(MetadataTypeVisitor visitor)
MetadataType
visitObject(ObjectType objectType)
will be called when this type is an ObjectType.accept
in interface MetadataType
visitor
- The visitorCopyright © 2018. All rights reserved.