Package org.teleal.cling.model.types

Examples of org.teleal.cling.model.types.StringDatatype


      /* The events are all of the form <qName val="value"/> so we can get all
       * the info we need from here.
       */
      try {
        if(atts.getValue("val") != null) {
          StateVariable stateVariable = new StateVariable(localName, new StateVariableTypeDetails(new StringDatatype()));
          StateVariableValue stateVariableValue = new StateVariableValue(stateVariable, atts.getValue("val"));
          changes.put(localName, stateVariableValue);
        }
      } catch (IllegalArgumentException e) {
        // this means that localName isn't defined in EventType, which is expected for some elements
View Full Code Here


    private boolean getPresetName=false;
    private String presetName;

    @Override
    public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException {
      StateVariable stateVariable = new StateVariable(localName, new StateVariableTypeDetails(new StringDatatype()));
      StateVariableValue stateVariableValue = new StateVariableValue(stateVariable, atts.getValue("val"));
     
     
      if ("Volume".equals(qName)) {     
        changes.put(qName+atts.getValue("channel"), stateVariableValue);
View Full Code Here

    @Override
    public void endElement(String uri, String localName, String qName) throws SAXException {
      if (getPresetName) {
        getPresetName = false;
        StateVariable stateVariable = new StateVariable(localName, new StateVariableTypeDetails(new StringDatatype()));
        StateVariableValue stateVariableValue = new StateVariableValue(stateVariable, presetName);
        changes.put(qName, stateVariableValue);
      }
    }
View Full Code Here

TOP

Related Classes of org.teleal.cling.model.types.StringDatatype

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.