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 testByLabel() {
          assertEquals(Kitchen.class, SemanticTags.getByLabel("Kitchen", Locale.ENGLISH));
          assertEquals(Kitchen.class, SemanticTags.getByLabel("Küche", Locale.GERMAN));
          assertNull(SemanticTags.getByLabel("Badezimmer", Locale.GERMAN));
      }
test_case.class_method_signature: SemanticTagsTest.testByLabel()
test_case.full_signature: @Test public void testByLabel()
test_case.identifier: testByLabel
test_case.invocations: assertEquals getByLabel assertEquals getByLabel assertNull getByLabel
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testByLabel()
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: public static @Nullable Class<? extends Tag> getByLabel(String tagLabel, Locale locale) {
          Optional<Class<? extends Tag>> tag = TAGS.values().stream().distinct()
                  .filter(t -> getLabel(t, locale).equalsIgnoreCase(tagLabel)).findFirst();
          return tag.isPresent() ? tag.get() : null;
      }
focal_method.class_method_signature: SemanticTags.getByLabel(String tagLabel, Locale locale)
focal_method.full_signature: public static @Nullable Class<? extends Tag> getByLabel(String tagLabel, Locale locale)
focal_method.identifier: getByLabel
focal_method.invocations: findFirst filter distinct stream values equalsIgnoreCase getLabel isPresent get
focal_method.modifiers: public static @Nullable
focal_method.parameters: (String tagLabel, Locale locale)
focal_method.return: Class<? extends Tag>
focal_method.signature: Class<? extends Tag> getByLabel(String tagLabel, Locale locale)