public class DefaultMetaDataKey extends Object implements MetaDataKey, TypeMetaDataModel
MetaDataKey default implementation. This should be used to describe the service entities/types names and display name.
| Constructor and Description |
|---|
DefaultMetaDataKey(String id,
String displayName)
Simple
DefaultMetaDataKey constructor. |
DefaultMetaDataKey(String id,
String displayName,
boolean isFromCapable)
Deprecated.
|
DefaultMetaDataKey(String id,
String displayName,
List<MetaDataKeyProperty> keyProperties)
This is an advanced constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addProperty(MetaDataKeyProperty metaDataKeyProperty) |
int |
compareTo(MetaDataKey otherMetadataKey)
|
boolean |
equals(Object obj) |
String |
getCategory() |
String |
getDisplayName() |
String |
getId() |
List<MetaDataKeyProperty> |
getProperties() |
<T extends MetaDataKeyProperty> |
getProperty(Class<T> metaDataKeyProperty) |
int |
hashCode() |
boolean |
hasProperty(Class<? extends MetaDataKeyProperty> metaDataKeyProperty) |
boolean |
isFromCapable()
Deprecated.
use
hasProperty(Class) instead |
boolean |
removeProperty(MetaDataKeyProperty metaDataKeyProperty) |
void |
setCategory(String category) |
String |
toString() |
public DefaultMetaDataKey(String id, String displayName)
DefaultMetaDataKey constructor. You should use this for most use cases.id - The XML name for the entity.displayName - The name that will be displayed on Studio UI.public DefaultMetaDataKey(String id, String displayName, List<MetaDataKeyProperty> keyProperties)
This is an advanced constructor. You should use the DefaultMetaDataKey(String id, String displayName) for most use cases.
This is intended for advanced scenarios like DSQL or Grouping types.
id - The XML name for the entity.displayName - The name that will be displayed on Studio UI.keyProperties - Properties used for advanced scenarios. Some of them are DsqlFromMetaDataKeyProperty or TypeDescribingProperty.@Deprecated public DefaultMetaDataKey(String id, String displayName, boolean isFromCapable)
public String getId()
getId in interface MetaDataKeypublic String getDisplayName()
getDisplayName in interface MetaDataKeypublic String getCategory()
getCategory in interface MetaDataKeypublic void setCategory(String category)
public List<MetaDataKeyProperty> getProperties()
getProperties in interface MetaDataKeypublic boolean addProperty(MetaDataKeyProperty metaDataKeyProperty)
addProperty in interface MetaDataKeypublic boolean removeProperty(MetaDataKeyProperty metaDataKeyProperty)
removeProperty in interface MetaDataKeypublic boolean hasProperty(Class<? extends MetaDataKeyProperty> metaDataKeyProperty)
hasProperty in interface MetaDataKeypublic <T extends MetaDataKeyProperty> T getProperty(Class<T> metaDataKeyProperty)
getProperty in interface MetaDataKeypublic int compareTo(MetaDataKey otherMetadataKey)
category of both keys, where, if it's not
possible to discriminate the order, the id will take place.compareTo in interface Comparable<MetaDataKey>otherMetadataKey - the key to be compared with@Deprecated public boolean isFromCapable()
hasProperty(Class) insteadisFromCapable in interface TypeMetaDataModelCopyright © 2015 MuleSoft, Inc.. All rights reserved.