Package org.openhab.binding.homematic.internal.model.adapter

Examples of org.openhab.binding.homematic.internal.model.adapter.TypeGuessAdapter


    FieldUtils.writeField(dp, "name", name, true);
    FieldUtils.writeField(dp, "minValue", min, true);
    FieldUtils.writeField(dp, "maxValue", max, true);

    Object convertedValue = new TypeGuessAdapter().unmarshal(value == null ? null : value.toString());
    if (convertedValue instanceof Boolean) {
      FieldUtils.writeField(dp, "valueType", 2, true);
    } else if (convertedValue instanceof Integer) {
      FieldUtils.writeField(dp, "valueType", 8, true);
    } else if (convertedValue instanceof Double) {
View Full Code Here

TOP

Related Classes of org.openhab.binding.homematic.internal.model.adapter.TypeGuessAdapter

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.