public final class DefaultMetadataKey extends Object implements MetadataKey
MetadataKey.| Modifier | Constructor and Description |
|---|---|
protected |
DefaultMetadataKey(String id,
String displayName,
Set<MetadataProperty> properties,
Set<MetadataKey> childs,
String partName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Set<MetadataKey> |
getChilds() |
String |
getDisplayName() |
String |
getId() |
<T extends MetadataProperty> |
getMetadataProperty(Class<T> propertyType)
Returns a registered model property of type
propertyType |
String |
getPartName() |
Set<MetadataProperty> |
getProperties() |
int |
hashCode() |
String |
toString() |
protected DefaultMetadataKey(String id, String displayName, Set<MetadataProperty> properties, Set<MetadataKey> childs, String partName)
public String getId()
getId in interface MetadataKeypublic String getDisplayName()
getDisplayName in interface MetadataKeypublic Set<MetadataKey> getChilds()
getChilds in interface MetadataKeyMetadataKeys that form a composed MetadataKey.public String getPartName()
getPartName in interface MetadataKeyMetadataKey is frompublic <T extends MetadataProperty> Optional<T> getMetadataProperty(Class<T> propertyType)
propertyTypegetMetadataProperty in interface MetadataEnrichableModelT - the generic type of the return valuepropertyType - the Class of the MetadataProperty which is being queriedOptional MetadataPropertypublic Set<MetadataProperty> getProperties()
getProperties in interface MetadataEnrichableModelSet of MetadataPropertys of the current element.Copyright © 2017 MuleSoft, Inc.. All rights reserved.