public class DefaultObjectKeyType extends BaseMetadataType implements ObjectKeyType
| Constructor and Description |
|---|
DefaultObjectKeyType(Optional<QName> name,
Optional<Pattern> pattern,
Collection<AttributeFieldType> attributes,
MetadataFormat metadataFormat,
Collection<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.
|
Collection<AttributeFieldType> |
getAttributes()
All the attributes of this key
|
Optional<String> |
getLabel() |
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 DefaultObjectKeyType(Optional<QName> name, Optional<Pattern> pattern, Collection<AttributeFieldType> attributes, MetadataFormat metadataFormat, Collection<TypeAnnotation> extensions)
public QName getName()
ObjectKeyTypegetName in interface ObjectKeyTypepublic boolean isName()
ObjectKeyTypeisName in interface ObjectKeyTypeTrue if it is a named keypublic Pattern getPattern()
ObjectKeyTypegetPattern in interface ObjectKeyTypepublic boolean isPattern()
ObjectKeyTypeisPattern in interface ObjectKeyTypeTrue if it is a pattern keypublic Collection<AttributeFieldType> getAttributes()
ObjectKeyTypegetAttributes in interface ObjectKeyTypepublic void accept(MetadataTypeVisitor visitor)
MetadataTypevisitObject(ObjectType objectType) will be called when this type is an ObjectType.accept in interface MetadataTypevisitor - The visitorCopyright © 2016 MuleSoft, Inc.. All rights reserved.