1 package org.xmldb.xupdate.lexus.commands; 2 3 55 56 import org.w3c.dom.Node ; 57 58 63 public class VariableCommand extends CommandObject { 64 65 68 public VariableCommand(Node contextNode) throws Exception { 69 super(contextNode); 70 } 71 72 73 76 public boolean submitInstruction(int instruction) { 77 return false; 79 } 80 81 82 85 public boolean executeInstruction() { 86 return false; 88 } 89 90 91 94 public Node execute() throws Exception { 95 String selection = (String ) attributes.get("select"); 96 String name = (String ) attributes.get("name"); 97 selectNodes(selection); 98 99 CommandConstants.tempTree.addVariable(name, selectionNodeList); 100 101 return contextNode; 102 } 103 104 } 105 106 | Popular Tags |