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
-
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:Identifiable
Get the unique identifier.- Specified by:
getUID
in interfaceIdentifiable<String>
- Returns:
- the unique identifier
-
getName
Description copied from interface:SemanticTag
Returns the name of the semantic tag.- Specified by:
getName
in interfaceSemanticTag
- Returns:
- the name of the semantic tag
-
getParentUID
Description copied from interface:SemanticTag
Returns the UID of the parent tag.- Specified by:
getParentUID
in interfaceSemanticTag
- Returns:
- the UID of the parent tag
-
getLabel
Description copied from interface:SemanticTag
Returns the label of the semantic tag.- Specified by:
getLabel
in interfaceSemanticTag
- Returns:
- semantic tag label or an empty string if undefined
-
getDescription
Description copied from interface:SemanticTag
Returns the description of the semantic tag.- Specified by:
getDescription
in interfaceSemanticTag
- Returns:
- semantic tag description or an empty string if undefined
-
getSynonyms
Description copied from interface:SemanticTag
Returns the synonyms of the semantic tag.- Specified by:
getSynonyms
in interfaceSemanticTag
- Returns:
- semantic tag synonyms as a List
-
localized
Description copied from interface:SemanticTag
Returns the localized semantic tag.- Specified by:
localized
in interfaceSemanticTag
- Parameters:
locale
- the locale to be used- Returns:
- the localized semantic tag
-