Package org.openhab.core.items
Class Metadata
java.lang.Object
org.openhab.core.items.Metadata
- All Implemented Interfaces:
Identifiable<MetadataKey>
This is a data class for storing meta-data for a given item and namespace.
It is the entity used for within the
MetadataRegistry
.- Author:
- Kai Kreuzer - Initial contribution
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Metadata
-
-
Method Details
-
getUID
Description copied from interface:Identifiable
Get the unique identifier.- Specified by:
getUID
in interfaceIdentifiable<MetadataKey>
- Returns:
- the unique identifier
-
getConfiguration
Provides the configuration meta-data.- Returns:
- configuration as a map of key-value pairs
-
getValue
Provides the main value of the meta-data.- Returns:
- the main meta-data as a string
-
hashCode
public int hashCode() -
equals
-
toString
-