Module: OpenHAB::Core::Items::Semantics::SemanticTag

Defined in:
lib/openhab/core/items/semantics/semantic_tag.rb

Overview

Since:

  • openHAB 4.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionString (readonly)

The tag's full description.

Returns:

  • (String)


# File 'lib/openhab/core/items/semantics/semantic_tag.rb', line 38

#labelString (readonly)

The tag's human readable label.

Returns:

  • (String)


# File 'lib/openhab/core/items/semantics/semantic_tag.rb', line 32

#nameString (readonly)

The tag's simple name.

Returns:

  • (String)


# File 'lib/openhab/core/items/semantics/semantic_tag.rb', line 26

#parent_uidString (readonly)

The UID of the tag's parent.

Returns:

  • (String)


# File 'lib/openhab/core/items/semantics/semantic_tag.rb', line 20

#synonymsjava.util.List<String> (readonly)

Allowed synonyms for the tag.

Returns:



# File 'lib/openhab/core/items/semantics/semantic_tag.rb', line 44

#uidString (readonly)

The tag's full UID, including ancestors.

Returns:

  • (String)


# File 'lib/openhab/core/items/semantics/semantic_tag.rb', line 14

Instance Method Details

#inspectString

Returns:

  • (String)

Since:

  • openHAB 4.0



88
89
90
91
92
93
94
# File 'lib/openhab/core/items/semantics/semantic_tag.rb', line 88

def inspect
  parent = "(#{parent_uid})" unless parent_uid.empty?
  "#<OpenHAB::Core::Items::Semantics::#{name}#{parent} " \
    "label=#{label.inspect} " \
    "description=#{description.inspect} " \
    "synonyms=#{synonyms.to_a.inspect}>"
end

#localized(locale) ⇒ SemanticTag

Returns a new SemanticTag localized to the specified locale.

Parameters:

Returns:



# File 'lib/openhab/core/items/semantics/semantic_tag.rb', line 50

#to_sString

Returns:

  • (String)

Since:

  • openHAB 4.0



97
98
99
# File 'lib/openhab/core/items/semantics/semantic_tag.rb', line 97

def to_s
  name
end