test_class.declarator: coreItemFactory
test_class.modifier: private
test_class.original_string: private CoreItemFactory coreItemFactory;
test_class.type: CoreItemFactory
test_class.var_name: coreItemFactory
test_class.declarator: itemTypeNames
test_class.modifier: private
test_class.original_string: private List<String> itemTypeNames;
test_class.type: List<String>
test_class.var_name: itemTypeNames
test_class.file: bundles/org.openhab.core/src/test/java/org/openhab/core/library/CoreItemFactoryTest.java
test_class.identifier: CoreItemFactoryTest
test_case.body: @Test
      public void shouldReturnNullForUnsupportedItemTypeName() {
          GenericItem item = coreItemFactory.createItem("NoValidItemTypeName", "IWantMyItem");
  
          assertThat(item, is(nullValue()));
      }
test_case.class_method_signature: CoreItemFactoryTest.shouldReturnNullForUnsupportedItemTypeName()
test_case.full_signature: @Test public void shouldReturnNullForUnsupportedItemTypeName()
test_case.identifier: shouldReturnNullForUnsupportedItemTypeName
test_case.invocations: createItem assertThat is nullValue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldReturnNullForUnsupportedItemTypeName()
focal_class.declarator: CALL = "Call"
focal_class.modifier: public static final
focal_class.original_string: public static final String CALL = "Call";
focal_class.type: String
focal_class.var_name: CALL
focal_class.declarator: COLOR = "Color"
focal_class.modifier: public static final
focal_class.original_string: public static final String COLOR = "Color";
focal_class.type: String
focal_class.var_name: COLOR
focal_class.declarator: CONTACT = "Contact"
focal_class.modifier: public static final
focal_class.original_string: public static final String CONTACT = "Contact";
focal_class.type: String
focal_class.var_name: CONTACT
focal_class.declarator: DATETIME = "DateTime"
focal_class.modifier: public static final
focal_class.original_string: public static final String DATETIME = "DateTime";
focal_class.type: String
focal_class.var_name: DATETIME
focal_class.declarator: DIMMER = "Dimmer"
focal_class.modifier: public static final
focal_class.original_string: public static final String DIMMER = "Dimmer";
focal_class.type: String
focal_class.var_name: DIMMER
focal_class.declarator: IMAGE = "Image"
focal_class.modifier: public static final
focal_class.original_string: public static final String IMAGE = "Image";
focal_class.type: String
focal_class.var_name: IMAGE
focal_class.declarator: LOCATION = "Location"
focal_class.modifier: public static final
focal_class.original_string: public static final String LOCATION = "Location";
focal_class.type: String
focal_class.var_name: LOCATION
focal_class.declarator: NUMBER = "Number"
focal_class.modifier: public static final
focal_class.original_string: public static final String NUMBER = "Number";
focal_class.type: String
focal_class.var_name: NUMBER
focal_class.declarator: PLAYER = "Player"
focal_class.modifier: public static final
focal_class.original_string: public static final String PLAYER = "Player";
focal_class.type: String
focal_class.var_name: PLAYER
focal_class.declarator: ROLLERSHUTTER = "Rollershutter"
focal_class.modifier: public static final
focal_class.original_string: public static final String ROLLERSHUTTER = "Rollershutter";
focal_class.type: String
focal_class.var_name: ROLLERSHUTTER
focal_class.declarator: STRING = "String"
focal_class.modifier: public static final
focal_class.original_string: public static final String STRING = "String";
focal_class.type: String
focal_class.var_name: STRING
focal_class.declarator: SWITCH = "Switch"
focal_class.modifier: public static final
focal_class.original_string: public static final String SWITCH = "Switch";
focal_class.type: String
focal_class.var_name: SWITCH
focal_class.file: bundles/org.openhab.core/src/main/java/org/openhab/core/library/CoreItemFactory.java
focal_class.identifier: CoreItemFactory
focal_class.interfaces: implements ItemFactory
focal_class.class_method_signature: CoreItemFactory.createItem(@Nullable String itemTypeName, String itemName)
focal_class.full_signature: @Override public @Nullable GenericItem createItem(@Nullable String itemTypeName, String itemName)
focal_class.identifier: createItem
focal_class.modifiers: @Override public @Nullable
focal_class.parameters: (@Nullable String itemTypeName, String itemName)
focal_class.return: GenericItem
focal_class.signature: GenericItem createItem(@Nullable String itemTypeName, String itemName)
focal_class.class_method_signature: CoreItemFactory.getSupportedItemTypes()
focal_class.full_signature: @Override public String[] getSupportedItemTypes()
focal_class.identifier: getSupportedItemTypes
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String[]
focal_class.signature: String[] getSupportedItemTypes()
focal_method.body: @Override
      public @Nullable GenericItem createItem(@Nullable String itemTypeName, String itemName) {
          if (itemTypeName == null) {
              return null;
          }
  
          String itemType = ItemUtil.getMainItemType(itemTypeName);
          switch (itemType) {
              case CALL:
                  return new CallItem(itemName);
              case COLOR:
                  return new ColorItem(itemName);
              case CONTACT:
                  return new ContactItem(itemName);
              case DATETIME:
                  return new DateTimeItem(itemName);
              case DIMMER:
                  return new DimmerItem(itemName);
              case IMAGE:
                  return new ImageItem(itemName);
              case LOCATION:
                  return new LocationItem(itemName);
              case NUMBER:
                  return new NumberItem(itemTypeName, itemName);
              case PLAYER:
                  return new PlayerItem(itemName);
              case ROLLERSHUTTER:
                  return new RollershutterItem(itemName);
              case STRING:
                  return new StringItem(itemName);
              case SWITCH:
                  return new SwitchItem(itemName);
              default:
                  return null;
          }
      }
focal_method.class_method_signature: CoreItemFactory.createItem(@Nullable String itemTypeName, String itemName)
focal_method.full_signature: @Override public @Nullable GenericItem createItem(@Nullable String itemTypeName, String itemName)
focal_method.identifier: createItem
focal_method.invocations: getMainItemType
focal_method.modifiers: @Override public @Nullable
focal_method.parameters: (@Nullable String itemTypeName, String itemName)
focal_method.return: GenericItem
focal_method.signature: GenericItem createItem(@Nullable String itemTypeName, String itemName)