Package org.openhab.binding.tinkerforge.internal.model

Examples of org.openhab.binding.tinkerforge.internal.model.ModelPackage$Literals


   * @param ohId The name of the device found in openhab.cfg as {@code String}.
   * @param deviceType The device type found in openhab.cfg as {@code String}.
   * @throws ConfigurationException
   */
  private void checkTfType(String ohId, String deviceType) throws ConfigurationException {
    ModelPackage modelPackage = ModelPackage.eINSTANCE;
    boolean deviceFound = false;
    for (EClassifier eClassifier : modelPackage.getEClassifiers()) {
      if (eClassifier instanceof EClass) {
        EList<EAttribute> attributes = ((EClass) eClassifier).getEAllAttributes();
        for (EAttribute attribute : attributes) {
          if (attribute.getName().equals("deviceType")) {
            if (attribute.getDefaultValueLiteral().equals(deviceType)) {
View Full Code Here

TOP

Related Classes of org.openhab.binding.tinkerforge.internal.model.ModelPackage$Literals

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.