Package org.openhab.core.items
Interface MetadataRegistry
- All Superinterfaces:
Registry<Metadata,
MetadataKey>
The MetadataRegistry is the central place, where additional information about items is kept.
Metadata can be supplied by
MetadataProvider
s, which can provision them from any source
they like and also dynamically remove or add data.- Author:
- Kai Kreuzer - Initial contribution
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAllNamespaces
(String itemname) Provides all namespaces of a particular itemboolean
isInternalNamespace
(String namespace) Determines whether the given namespace is internal.void
removeItemMetadata
(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:
true
if the given namespace is internal,false
otherwise
-
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.
-