Package org.cybergarage.xml

Examples of org.cybergarage.xml.Node.addNode()


    Node serviceListNode = getDeviceNode().getNode(ServiceList.ELEM_NAME);
    if (serviceListNode == null) {
      serviceListNode = new Node(ServiceList.ELEM_NAME);
      getDeviceNode().addNode(serviceListNode);
    }
    serviceListNode.addNode(s.getServiceNode());
  }

  /**
   * Add a Device to device without checking for duplicate or syntax error.
   * This method set or reset the root node of the Device and itself<br>
View Full Code Here


      // deviceListNode = new Node(ServiceList.ELEM_NAME); twa wrong
      // ELEM_NAME;
      deviceListNode = new Node(DeviceList.ELEM_NAME);
      getDeviceNode().addNode(deviceListNode);
    }
    deviceListNode.addNode(d.getDeviceNode());
    d.setRootNode(null);
    if (getRootNode() == null) {
      Node root = new Node(RootDescription.ROOT_ELEMENT);
      root.setNameSpace("", RootDescription.ROOT_ELEMENT_NAMESPACE);
      Node spec = new Node(RootDescription.SPECVERSION_ELEMENT);
View Full Code Here

    Node n = new Node(AllowedValueList.ELEM_NAME);
    Iterator i=avl.iterator();
    while (i.hasNext()) {
      AllowedValue av = (AllowedValue) i.next();
      //n.addNode(new Node(AllowedValue.ELEM_NAME,av.getValue())); wrong!
      n.addNode(av.getAllowedValueNode());            //better (twa)
    }
    getStateVariableNode().addNode(n);   
   
  }
View Full Code Here

    }
    Iterator i = al.iterator();
    while (i.hasNext()) {
      Argument a = (Argument) i.next();
      a.setService(getService());
      argumentListNode.addNode(a.getArgumentNode());
    }
   
  }

  public ArgumentList getInputArgumentList()
View Full Code Here

    sp.addNode(m);
   
    //Node scpd = new Node(SCPD_ROOTNODE,SCPD_ROOTNODE_NS); wrong!
    Node scpd = new Node(SCPD_ROOTNODE);
    scpd.addAttribute("xmlns",SCPD_ROOTNODE_NS);
    scpd.addNode(sp);
    getServiceData().setSCPDNode(scpd);
  }

  public Service(Node node)
  {
View Full Code Here

    Node actionListNode = scdpNode.getNode(ActionList.ELEM_NAME);
    if (actionListNode == null){     
      actionListNode = new Node(ActionList.ELEM_NAME);
      scdpNode.addNode(actionListNode);
    }
    actionListNode.addNode(a.getActionNode());
  }
 
  ////////////////////////////////////////////////
  //  serviceStateTable
  ////////////////////////////////////////////////
View Full Code Here

       */
      //getSCPDNode().insertNode(stateTableNode,0);
      getSCPDNode().addNode(stateTableNode);   
    }
    var.setServiceNode(getServiceNode());
    stateTableNode.addNode(var.getStateVariableNode());
  }

  ////////////////////////////////////////////////
  //  userData
  ////////////////////////////////////////////////
 
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.