Examples of TclScripts


Examples of org.openhab.binding.homematic.internal.model.TclScripts

  private Map<String, String> loadTclRegaScripts() throws HomematicClientException {
    try {
      Unmarshaller um = JAXBContext.newInstance(TclScripts.class).createUnmarshaller();
      InputStream stream = Thread.currentThread().getContextClassLoader()
          .getResourceAsStream("homematic/tclrega-scripts.xml");
      TclScripts scripts = (TclScripts) um.unmarshal(stream);

      Map<String, String> result = new HashMap<String, String>();
      for (TclScript script : scripts.getScripts()) {
        result.put(script.getName(), script.getData());
      }
      return result;
    } catch (JAXBException ex) {
      throw new HomematicClientException(ex.getMessage(), ex);
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.