Package org.openhab.core.items
Interface MetadataRegistry
- All Superinterfaces:
Registry<Metadata,MetadataKey>
- All Known Implementing Classes:
ProviderMetadataRegistryDelegate
The MetadataRegistry is the central place, where additional information about items is kept.
Metadata can be supplied by
MetadataProviders, which can provision them from any source
they like and also dynamically remove or add data.- Author:
- Kai Kreuzer - Initial contribution
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetAllNamespaces(String itemname) Provides all namespaces of a particular itembooleanisInternalNamespace(String namespace) Determines whether the given namespace is internal.voidremoveItemMetadata(String itemname) Remove all metadata of a given itemMethods inherited from interface org.openhab.core.common.registry.Registry
add, addRegistryChangeListener, get, getAll, remove, removeRegistryChangeListener, stream, update
-
Field Details
-
INTERNAL_NAMESPACE_PREFIX
- See Also:
-
-
Method Details
-
isInternalNamespace
Determines whether the given namespace is internal.- Parameters:
namespace- the metadata namespace to check- Returns:
trueif the given namespace is internal,falseotherwise
-
getAllNamespaces
Provides all namespaces of a particular item- Parameters:
itemname- the name of the item for which the namespaces should be searched.
-
removeItemMetadata
Remove all metadata of a given item- Parameters:
itemname- the name of the item for which the metadata is to be removed.
-