Package org.openhab.binding.intertechno.internal.parser

Examples of org.openhab.binding.intertechno.internal.parser.IntertechnoAddressParser


    String type = configParts[0].split("=")[1];
    List<String> addressParts = new ArrayList<String>(3);
    for (int i = 1; i < configParts.length; i++) {
      addressParts.add(configParts[i].split("=")[1]);
    }
    IntertechnoAddressParser parser = AddressParserFactory.getParser(type);
    String address = parser.parseAddress(addressParts
        .toArray(new String[addressParts.size()]));
    String commandOn = parser.getCommandValueON();
    String commandOff = parser.getCOmmandValueOFF();

    IntertechnoBindingConfig config = new IntertechnoBindingConfig(address,
        commandOn, commandOff);

    addBindingConfig(item, config);
View Full Code Here

TOP

Related Classes of org.openhab.binding.intertechno.internal.parser.IntertechnoAddressParser

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.