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()); }
public Action(Action action) { this.serviceNode = action.getServiceNode(); this.actionNode = action.getActionNode(); }