public final class NullMetadataKey extends Object implements MetadataKey
MetadataKey
implementation that represents the absence of a keyConstructor and Description |
---|
NullMetadataKey() |
Modifier and Type | Method and Description |
---|---|
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() |
public static final String ID
public String getId()
getId
in interface MetadataKey
public String getDisplayName()
getDisplayName
in interface MetadataKey
public Set<MetadataKey> getChilds()
getChilds
in interface MetadataKey
MetadataKeys
that form a composed MetadataKey
.public String getPartName()
getPartName
in interface MetadataKey
MetadataKey
is frompublic <T extends MetadataProperty> Optional<T> getMetadataProperty(Class<T> propertyType)
propertyType
getMetadataProperty
in interface MetadataEnrichableModel
T
- the generic type of the return valuepropertyType
- the Class
of the MetadataProperty
which is being queriedOptional
MetadataProperty
public Set<MetadataProperty> getProperties()
getProperties
in interface MetadataEnrichableModel
Set
of MetadataProperty
s of the current element.Copyright © 2018. All rights reserved.