Package org.openhab.core.library.items

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


   * @{inheritDoc}
   */
  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);
View Full Code Here

TOP

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

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.