public class DefaultAttributeKeyType extends BaseMetadataType implements AttributeKeyType
annotations| Constructor and Description |
|---|
DefaultAttributeKeyType(Optional<QName> name,
Optional<Pattern> pattern,
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.
|
QName |
getName()
The name of the key if it is a named key else throws a NoSuchElementException.
|
Pattern |
getPattern()
The pattern of the key if it is a pattern based key else throws a NoSuchElementException.
|
boolean |
isName()
Return if the this is a named key or not
|
boolean |
isPattern()
Return if the this is a pattern key or not.
|
equals, getAnnotation, getAnnotations, getDescription, getMetadataFormat, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAnnotation, getAnnotations, getDescription, getMetadataFormatpublic DefaultAttributeKeyType(Optional<QName> name, Optional<Pattern> pattern, MetadataFormat metadataFormat, Map<Class<? extends TypeAnnotation>,TypeAnnotation> extensions)
public QName getName()
AttributeKeyTypegetName in interface AttributeKeyTypepublic Pattern getPattern()
AttributeKeyTypegetPattern in interface AttributeKeyTypepublic boolean isName()
AttributeKeyTypeisName in interface AttributeKeyTypeTrue if it is a named keypublic boolean isPattern()
AttributeKeyTypeisPattern in interface AttributeKeyTypeTrue if it is a pattern keypublic void accept(MetadataTypeVisitor visitor)
MetadataTypevisitObject(ObjectType objectType) will be called when this type is an ObjectType.accept in interface MetadataTypevisitor - The visitorCopyright © 2023 MuleSoft, Inc.. All rights reserved.