Package org.mule.metadata.api.model
Interface AttributeKeyType
-
- All Superinterfaces:
MetadataType
- All Known Implementing Classes:
DefaultAttributeKeyType
public interface AttributeKeyType extends MetadataType
An attribute key. It can be either a QName or a Pattern.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description QNamegetName()The name of the key if it is a named key else throws a NoSuchElementException.PatterngetPattern()The pattern of the key if it is a pattern based key else throws a NoSuchElementException.booleanisName()Return if the this is a named key or notbooleanisPattern()Return if the this is a pattern key or not.-
Methods inherited from interface org.mule.metadata.api.model.MetadataType
accept, getAnnotation, getAnnotations, getDescription, getMetadataFormat
-
-
-
-
Method Detail
-
getName
QName getName()
The name of the key if it is a named key else throws a NoSuchElementException.- Returns:
- The name of the key.
- Throws:
NoSuchElementException- if it is not a named key.
-
isName
boolean isName()
Return if the this is a named key or not- Returns:
Trueif it is a named key
-
getPattern
Pattern getPattern()
The pattern of the key if it is a pattern based key else throws a NoSuchElementException.- Returns:
- The name of the key.
- Throws:
NoSuchElementException- if it is not a pattern based key.
-
isPattern
boolean isPattern()
Return if the this is a pattern key or not.- Returns:
Trueif it is a pattern key
-
-