示例#1
0
  public void addAction(Action a) {
    Iterator i = a.getArgumentList().iterator();
    while (i.hasNext()) {
      Argument arg = (Argument) i.next();
      arg.setService(this);
    }

    Node scdpNode = getSCPDNode();
    Node actionListNode = scdpNode.getNode(ActionList.ELEM_NAME);
    if (actionListNode == null) {
      actionListNode = new Node(ActionList.ELEM_NAME);
      scdpNode.addNode(actionListNode);
    }
    actionListNode.addNode(a.getActionNode());
  }
示例#2
0
 public Action(Action action) {
   this.serviceNode = action.getServiceNode();
   this.actionNode = action.getActionNode();
 }