Package org.openhab.core.semantics
Class SemanticTagImpl
java.lang.Object
org.openhab.core.semantics.SemanticTagImpl
- All Implemented Interfaces:
Identifiable<String>,SemanticTag
This is the main implementing class of the
SemanticTag interface.- Author:
- Laurent Garnier - Initial contribution
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the description of the semantic tag.getLabel()Returns the label of the semantic tag.getName()Returns the name of the semantic tag.Returns the UID of the parent tag.Returns the synonyms of the semantic tag.getUID()Get the unique identifier.Returns the localized semantic tag.
-
Constructor Details
-
SemanticTagImpl
-
SemanticTagImpl
-
-
Method Details
-
getUID
Description copied from interface:IdentifiableGet the unique identifier.- Specified by:
getUIDin interfaceIdentifiable<String>- Returns:
- the unique identifier
-
getName
Description copied from interface:SemanticTagReturns the name of the semantic tag.- Specified by:
getNamein interfaceSemanticTag- Returns:
- the name of the semantic tag
-
getParentUID
Description copied from interface:SemanticTagReturns the UID of the parent tag.- Specified by:
getParentUIDin interfaceSemanticTag- Returns:
- the UID of the parent tag
-
getLabel
Description copied from interface:SemanticTagReturns the label of the semantic tag.- Specified by:
getLabelin interfaceSemanticTag- Returns:
- semantic tag label or an empty string if undefined
-
getDescription
Description copied from interface:SemanticTagReturns the description of the semantic tag.- Specified by:
getDescriptionin interfaceSemanticTag- Returns:
- semantic tag description or an empty string if undefined
-
getSynonyms
Description copied from interface:SemanticTagReturns the synonyms of the semantic tag.- Specified by:
getSynonymsin interfaceSemanticTag- Returns:
- semantic tag synonyms as a List
-
localized
Description copied from interface:SemanticTagReturns the localized semantic tag.- Specified by:
localizedin interfaceSemanticTag- Parameters:
locale- the locale to be used- Returns:
- the localized semantic tag
-