public class DefaultComposedMetaDataKey extends Object implements ComposedMetaDataKey, org.mule.common.metadata.TypeMetaDataModel
MetaDataKey default implementation. This should be used to describe the service entities/types names and display name.
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_KEY_SEPARATOR |
| Constructor and Description |
|---|
DefaultComposedMetaDataKey()
Basic constructor, default separator will be used if none is provided when id's are fetched.
|
DefaultComposedMetaDataKey(ComposedMetaDataKey origin)
Copy constructor.
|
DefaultComposedMetaDataKey(org.mule.common.metadata.MetaDataKey defaultKey,
String separator)
Creates a ComposedMetaDataKey from a simple MetaDataKey.
|
DefaultComposedMetaDataKey(String separator)
Custom separator constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLevel(String levelId,
String label)
Creates a new level in the current key with this id.
|
boolean |
addProperty(org.mule.common.metadata.key.property.MetaDataKeyProperty metaDataKeyProperty) |
int |
compareTo(org.mule.common.metadata.MetaDataKey otherMetadataKey)
For keys comparison, the first criteria to match will be the
category of both keys, where, if it's not
possible to discriminate the order, the key id will take place. |
boolean |
equals(Object obj) |
String |
getCategory() |
String |
getDisplayName()
This will return a single string representation of the key labels, appending each level label with
a the default separator @link{DefaultComposedMetaDataKey.DEFAULT_KEY_SEPARATOR}.
|
String |
getDisplayName(String separator)
This will return a single string representation of the key labels, appending each level label
with the parameterized separator.
|
String |
getId()
This will return a single string representation of the key id's, appending each level id with
a the default separator @link{DefaultComposedMetaDataKey.DEFAULT_KEY_SEPARATOR}.
|
String |
getId(String separator)
This will return a single string representation of the key labels, appending each level label
with the parameterized separator.
|
List<org.mule.common.metadata.key.property.MetaDataKeyProperty> |
getProperties() |
<T extends org.mule.common.metadata.key.property.MetaDataKeyProperty> |
getProperty(Class<T> metaDataKeyProperty) |
String |
getSeparator() |
List<String> |
getSortedDisplayNames() |
List<String> |
getSortedIds() |
int |
hashCode() |
boolean |
hasProperty(Class<? extends org.mule.common.metadata.key.property.MetaDataKeyProperty> metaDataKeyProperty) |
boolean |
isFromCapable()
Deprecated.
use
hasProperty(Class) instead |
Integer |
levels() |
boolean |
removeProperty(org.mule.common.metadata.key.property.MetaDataKeyProperty metaDataKeyProperty) |
void |
setCategory(String category) |
String |
toString() |
public static final String DEFAULT_KEY_SEPARATOR
public DefaultComposedMetaDataKey()
public DefaultComposedMetaDataKey(String separator)
InvalidSeparatorExceptionpublic DefaultComposedMetaDataKey(ComposedMetaDataKey origin)
public DefaultComposedMetaDataKey(org.mule.common.metadata.MetaDataKey defaultKey,
String separator)
separator - KeySeparator forInvalidKeyExceptionpublic void addLevel(String levelId, String label)
addLevel in interface ComposedMetaDataKeyInvalidKeyExceptionpublic String getId()
getId in interface org.mule.common.metadata.MetaDataKeypublic Integer levels()
levels in interface ComposedMetaDataKeypublic String getSeparator()
getSeparator in interface ComposedMetaDataKeypublic String getDisplayName()
getDisplayName in interface org.mule.common.metadata.MetaDataKeypublic String getId(String separator)
getId in interface ComposedMetaDataKeyseparator - string used as division between idspublic String getDisplayName(String separator)
getDisplayName in interface ComposedMetaDataKeyseparator - string used as division between labelspublic List<String> getSortedIds()
getSortedIds in interface ComposedMetaDataKeypublic List<String> getSortedDisplayNames()
getSortedDisplayNames in interface ComposedMetaDataKeypublic String getCategory()
getCategory in interface org.mule.common.metadata.MetaDataKeypublic void setCategory(String category)
public List<org.mule.common.metadata.key.property.MetaDataKeyProperty> getProperties()
getProperties in interface org.mule.common.metadata.MetaDataKeypublic boolean addProperty(org.mule.common.metadata.key.property.MetaDataKeyProperty metaDataKeyProperty)
addProperty in interface org.mule.common.metadata.MetaDataKeypublic boolean removeProperty(org.mule.common.metadata.key.property.MetaDataKeyProperty metaDataKeyProperty)
removeProperty in interface org.mule.common.metadata.MetaDataKeypublic boolean hasProperty(Class<? extends org.mule.common.metadata.key.property.MetaDataKeyProperty> metaDataKeyProperty)
hasProperty in interface org.mule.common.metadata.MetaDataKeypublic <T extends org.mule.common.metadata.key.property.MetaDataKeyProperty> T getProperty(Class<T> metaDataKeyProperty)
getProperty in interface org.mule.common.metadata.MetaDataKeypublic int compareTo(org.mule.common.metadata.MetaDataKey otherMetadataKey)
category of both keys, where, if it's not
possible to discriminate the order, the key id will take place.compareTo in interface Comparable<org.mule.common.metadata.MetaDataKey>otherMetadataKey - the key to be compared with@Deprecated public boolean isFromCapable()
hasProperty(Class) insteadisFromCapable in interface org.mule.common.metadata.TypeMetaDataModelCopyright © 2010–2015 MuleSoft, Inc.. All rights reserved.