test_class.declarator: locationItem
test_class.modifier: private
test_class.original_string: private GroupItem locationItem;
test_class.type: GroupItem
test_class.var_name: locationItem
test_class.declarator: equipmentItem
test_class.modifier: private
test_class.original_string: private GroupItem equipmentItem;
test_class.type: GroupItem
test_class.var_name: equipmentItem
test_class.declarator: pointItem
test_class.modifier: private
test_class.original_string: private GenericItem pointItem;
test_class.type: GenericItem
test_class.var_name: pointItem
test_class.file: bundles/org.openhab.core.semantics/src/test/java/org/openhab/core/semantics/SemanticTagsTest.java
test_class.identifier: SemanticTagsTest
test_case.body: @Test
      public void testGetProperty() {
          assertEquals(Temperature.class, SemanticTags.getProperty(pointItem));
      }
test_case.class_method_signature: SemanticTagsTest.testGetProperty()
test_case.full_signature: @Test public void testGetProperty()
test_case.identifier: testGetProperty
test_case.invocations: assertEquals getProperty
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetProperty()
focal_class.declarator: TAGS_BUNDLE_NAME = "tags"
focal_class.modifier: private static final
focal_class.original_string: private static final String TAGS_BUNDLE_NAME = "tags";
focal_class.type: String
focal_class.var_name: TAGS_BUNDLE_NAME
focal_class.declarator: TAGS = new TreeMap<>()
focal_class.modifier: private static final
focal_class.original_string: private static final Map<String, Class<? extends Tag>> TAGS = new TreeMap<>();
focal_class.type: Map<String, Class<? extends Tag>>
focal_class.var_name: TAGS
focal_class.file: bundles/org.openhab.core.semantics/src/main/java/org/openhab/core/semantics/SemanticTags.java
focal_class.identifier: SemanticTags
focal_class.class_method_signature: SemanticTags.getById(String tagId)
focal_class.full_signature: public static @Nullable Class<? extends Tag> getById(String tagId)
focal_class.identifier: getById
focal_class.modifiers: public static @Nullable
focal_class.parameters: (String tagId)
focal_class.return: Class<? extends Tag>
focal_class.signature: Class<? extends Tag> getById(String tagId)
focal_class.class_method_signature: SemanticTags.getByLabel(String tagLabel, Locale locale)
focal_class.full_signature: public static @Nullable Class<? extends Tag> getByLabel(String tagLabel, Locale locale)
focal_class.identifier: getByLabel
focal_class.modifiers: public static @Nullable
focal_class.parameters: (String tagLabel, Locale locale)
focal_class.return: Class<? extends Tag>
focal_class.signature: Class<? extends Tag> getByLabel(String tagLabel, Locale locale)
focal_class.class_method_signature: SemanticTags.getByLabelOrSynonym(String tagLabelOrSynonym, Locale locale)
focal_class.full_signature: public static List<Class<? extends Tag>> getByLabelOrSynonym(String tagLabelOrSynonym, Locale locale)
focal_class.identifier: getByLabelOrSynonym
focal_class.modifiers: public static
focal_class.parameters: (String tagLabelOrSynonym, Locale locale)
focal_class.return: List<Class<? extends Tag>>
focal_class.signature: List<Class<? extends Tag>> getByLabelOrSynonym(String tagLabelOrSynonym, Locale locale)
focal_class.class_method_signature: SemanticTags.getLabelAndSynonyms(Class<? extends Tag> tag, Locale locale)
focal_class.full_signature: public static List<String> getLabelAndSynonyms(Class<? extends Tag> tag, Locale locale)
focal_class.identifier: getLabelAndSynonyms
focal_class.modifiers: public static
focal_class.parameters: (Class<? extends Tag> tag, Locale locale)
focal_class.return: List<String>
focal_class.signature: List<String> getLabelAndSynonyms(Class<? extends Tag> tag, Locale locale)
focal_class.class_method_signature: SemanticTags.getLabel(Class<? extends Tag> tag, Locale locale)
focal_class.full_signature: public static String getLabel(Class<? extends Tag> tag, Locale locale)
focal_class.identifier: getLabel
focal_class.modifiers: public static
focal_class.parameters: (Class<? extends Tag> tag, Locale locale)
focal_class.return: String
focal_class.signature: String getLabel(Class<? extends Tag> tag, Locale locale)
focal_class.class_method_signature: SemanticTags.getSemanticType(Item item)
focal_class.full_signature: public static @Nullable Class<? extends Tag> getSemanticType(Item item)
focal_class.identifier: getSemanticType
focal_class.modifiers: public static @Nullable
focal_class.parameters: (Item item)
focal_class.return: Class<? extends Tag>
focal_class.signature: Class<? extends Tag> getSemanticType(Item item)
focal_class.class_method_signature: SemanticTags.getProperty(Item item)
focal_class.full_signature: @SuppressWarnings("unchecked") public static @Nullable Class<? extends Property> getProperty(Item item)
focal_class.identifier: getProperty
focal_class.modifiers: @SuppressWarnings("unchecked") public static @Nullable
focal_class.parameters: (Item item)
focal_class.return: Class<? extends Property>
focal_class.signature: Class<? extends Property> getProperty(Item item)
focal_class.class_method_signature: SemanticTags.addTagSet(Class<? extends Tag> tagSet)
focal_class.full_signature: private static void addTagSet(Class<? extends Tag> tagSet)
focal_class.identifier: addTagSet
focal_class.modifiers: private static
focal_class.parameters: (Class<? extends Tag> tagSet)
focal_class.return: void
focal_class.signature: void addTagSet(Class<? extends Tag> tagSet)
focal_method.body: @SuppressWarnings("unchecked")
      public static @Nullable Class<? extends Property> getProperty(Item item) {
          Set<String> tags = item.getTags();
          for (String tag : tags) {
              Class<? extends Tag> type = getById(tag);
              if (type != null && Property.class.isAssignableFrom(type)) {
                  return (Class<? extends Property>) type;
              }
          }
          return null;
      }
focal_method.class_method_signature: SemanticTags.getProperty(Item item)
focal_method.full_signature: @SuppressWarnings("unchecked") public static @Nullable Class<? extends Property> getProperty(Item item)
focal_method.identifier: getProperty
focal_method.invocations: getTags getById isAssignableFrom
focal_method.modifiers: @SuppressWarnings("unchecked") public static @Nullable
focal_method.parameters: (Item item)
focal_method.return: Class<? extends Property>
focal_method.signature: Class<? extends Property> getProperty(Item item)