Package org.openhab.core.library.items

Examples of org.openhab.core.library.items.StringItem


   */
  public GenericItem createItem(String itemTypeName, String itemName) {
    if (itemTypeName.equals(ITEM_TYPES[0])) return new SwitchItem(itemName);
    if (itemTypeName.equals(ITEM_TYPES[1])) return new RollershutterItem(itemName);
    if (itemTypeName.equals(ITEM_TYPES[2])) return new ContactItem(itemName);
    if (itemTypeName.equals(ITEM_TYPES[3])) return new StringItem(itemName);
    if (itemTypeName.equals(ITEM_TYPES[4])) return new NumberItem(itemName);
    if (itemTypeName.equals(ITEM_TYPES[5])) return new DimmerItem(itemName);
    if (itemTypeName.equals(ITEM_TYPES[6])) return new DateTimeItem(itemName);
    if (itemTypeName.equals(ITEM_TYPES[7])) return new ColorItem(itemName);
    else return null;
View Full Code Here


    @Before
    public void setUpDefaultDevice() {
        parameterAddress = new EnoceanParameterAddress(EnoceanId.fromString(EnoceanBindingProviderMock.DEVICE_ID));
        provider.setParameterAddress(parameterAddress);
        provider.setItem(new StringItem("dummie"));
        provider.setEep(EEPId.EEP_F6_10_00);
        binding.addBindingProvider(provider);
    }
View Full Code Here

TOP

Related Classes of org.openhab.core.library.items.StringItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.