Examples of ItemModel


Examples of org.openhab.model.items.ItemModel

  }

  public ModelItem getItem(String itemName) {
    if (itemName != null && modelRepository != null) {
      for (String modelName : modelRepository.getAllModelNamesOfType("items")) {
        ItemModel model = (ItemModel) modelRepository.getModel(modelName);
        for (ModelItem item : model.getItems()) {
          if (itemName.equals(item.getName()))
            return item;
        }
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.