public Node(String name) { this(); setName(name); }
private Node createResponseNode(String var) { Node queryResNode = new Node(); queryResNode.setName(Control.NS, Control.QUERY_STATE_VARIABLE_RESPONSE); queryResNode.setNameSpace(Control.NS, Control.XMLNS); Node returnNode = new Node(); returnNode.setName(Control.RETURN); returnNode.setValue(var); queryResNode.addNode(returnNode); return queryResNode; } }
private Node createContentNode(StateVariable stateVar) { Node queryVarNode = new Node(); queryVarNode.setName(Control.NS, Control.QUERY_STATE_VARIABLE); queryVarNode.setNameSpace(Control.NS, Control.XMLNS); Node varNode = new Node(); varNode.setName(Control.NS, Control.VAR_NAME); varNode.setValue(stateVar.getName()); queryVarNode.addNode(varNode); return queryVarNode; }
public Node(String ns, String name) { this(); setName(ns, name); }
private Node createContentNode(Service service, Action action, ArgumentList argList) { String actionName = action.getName(); String serviceType = service.getServiceType(); Node actionNode = new Node(); actionNode.setName(Control.NS, actionName); actionNode.setNameSpace(Control.NS, serviceType); int argListCnt = argList.size(); for (int n=0; n<argListCnt; n++) { Argument arg = argList.getArgument(n); Node argNode = new Node(); argNode.setName(arg.getName()); argNode.setValue(arg.getValue()); actionNode.addNode(argNode); } return actionNode; }
node.setName(domNodeName); node.setValue(domNodeValue);
private Node createResponseNode(String var) { Node queryResNode = new Node(); queryResNode.setName(Control.NS, Control.QUERY_STATE_VARIABLE_RESPONSE); queryResNode.setNameSpace(Control.NS, Control.XMLNS); Node returnNode = new Node(); returnNode.setName(Control.RETURN); returnNode.setValue(var); queryResNode.addNode(returnNode); return queryResNode; } }
public Node(String name) { this(); setName(name); }
private Node createResponseNode(String var) { Node queryResNode = new Node(); queryResNode.setName(Control.NS, Control.QUERY_STATE_VARIABLE_RESPONSE); queryResNode.setNameSpace(Control.NS, Control.XMLNS); Node returnNode = new Node(); returnNode.setName(Control.RETURN); returnNode.setValue(var); queryResNode.addNode(returnNode); return queryResNode; } }
public Node(String ns, String name) { this(); setName(ns, name); }
private Node createContentNode(StateVariable stateVar) { Node queryVarNode = new Node(); queryVarNode.setName(Control.NS, Control.QUERY_STATE_VARIABLE); queryVarNode.setNameSpace(Control.NS, Control.XMLNS); Node varNode = new Node(); varNode.setName(Control.NS, Control.VAR_NAME); varNode.setValue(stateVar.getName()); queryVarNode.addNode(varNode); return queryVarNode; }
public Node(String ns, String name) { this(); setName(ns, name); }
private Node createContentNode(StateVariable stateVar) { Node queryVarNode = new Node(); queryVarNode.setName(Control.NS, Control.QUERY_STATE_VARIABLE); queryVarNode.setNameSpace(Control.NS, Control.XMLNS); Node varNode = new Node(); varNode.setName(Control.NS, Control.VAR_NAME); varNode.setValue(stateVar.getName()); queryVarNode.addNode(varNode); return queryVarNode; }
public Node(String name) { this(); setName(name); }
private Node createContentNode(Service service, Action action, ArgumentList argList) { String actionName = action.getName(); String serviceType = service.getServiceType(); Node actionNode = new Node(); actionNode.setName(Control.NS, actionName); actionNode.setNameSpace(Control.NS, serviceType); int argListCnt = argList.size(); for (int n=0; n<argListCnt; n++) { Argument arg = argList.getArgument(n); Node argNode = new Node(); argNode.setName(arg.getName()); argNode.setValue(arg.getValue()); actionNode.addNode(argNode); } return actionNode; }
public boolean set(Node otherNode) { if (otherNode == null) return false; setName(otherNode.getName()); setValue(otherNode.getValue()); removeAllAttributes(); int nOtherAttributes = otherNode.getNAttributes(); for (int n=0; n<nOtherAttributes; n++) { Attribute otherAttr = otherNode.getAttribute(n); Attribute thisAttr = new Attribute(otherAttr); addAttribute(thisAttr); } removeAllNodes(); int nOtherChildNodes = otherNode.getNNodes(); for (int n=0; n<nOtherChildNodes; n++) { Node otherChildNode = otherNode.getNode(n); Node thisChildNode = new Node(); thisChildNode.set(otherChildNode); addNode(thisChildNode); } return true; }
private Node createContentNode(Service service, Action action, ArgumentList argList) { String actionName = action.getName(); String serviceType = service.getServiceType(); Node actionNode = new Node(); actionNode.setName(Control.NS, actionName); actionNode.setNameSpace(Control.NS, serviceType); int argListCnt = argList.size(); for (int n=0; n<argListCnt; n++) { Argument arg = argList.getArgument(n); Node argNode = new Node(); argNode.setName(arg.getName()); argNode.setValue(arg.getValue()); actionNode.addNode(argNode); } return actionNode; }
private Node createResponseNode(Action action) { String actionName = action.getName(); Node actionNameResNode = new Node(SOAP.METHODNS + SOAP.DELIM + actionName + SOAP.RESPONSE); Service service = action.getService(); if (service != null) { actionNameResNode.setAttribute( "xmlns:" + SOAP.METHODNS, service.getServiceType()); } ArgumentList argList = action.getArgumentList(); int nArgs = argList.size(); for (int n=0; n<nArgs; n++) { Argument arg = argList.getArgument(n); if (arg.isOutDirection() == false) continue; Node argNode = new Node(); argNode.setName(arg.getName()); argNode.setValue(arg.getValue()); actionNameResNode.addNode(argNode); } return actionNameResNode; }
public boolean set(Node otherNode) { if (otherNode == null) return false; setName(otherNode.getName()); setValue(otherNode.getValue()); removeAllAttributes(); int nOtherAttributes = otherNode.getNAttributes(); for (int n=0; n<nOtherAttributes; n++) { Attribute otherAttr = otherNode.getAttribute(n); Attribute thisAttr = new Attribute(otherAttr); addAttribute(thisAttr); } removeAllNodes(); int nOtherChildNodes = otherNode.getNNodes(); for (int n=0; n<nOtherChildNodes; n++) { Node otherChildNode = otherNode.getNode(n); Node thisChildNode = new Node(); thisChildNode.set(otherChildNode); addNode(thisChildNode); } return true; }
public boolean set(Node otherNode) { if (otherNode == null) return false; setName(otherNode.getName()); setValue(otherNode.getValue()); removeAllAttributes(); int nOtherAttributes = otherNode.getNAttributes(); for (int n=0; n<nOtherAttributes; n++) { Attribute otherAttr = otherNode.getAttribute(n); Attribute thisAttr = new Attribute(otherAttr); addAttribute(thisAttr); } removeAllNodes(); int nOtherChildNodes = otherNode.getNNodes(); for (int n=0; n<nOtherChildNodes; n++) { Node otherChildNode = otherNode.getNode(n); Node thisChildNode = new Node(); thisChildNode.set(otherChildNode); addNode(thisChildNode); } return true; }