XML:DB Lexus

org.xmldb.xupdate.lexus.commands
Class CommandObject

java.lang.Object
  extended byorg.xmldb.xupdate.lexus.commands.CommandObject
Direct Known Subclasses:
DefaultCommand, InsertCommand, RemoveCommand, RenameCommand, UpdateCommand, VariableCommand

public abstract class CommandObject
extends java.lang.Object

Version:
$Id: CommandObject.java,v 1.1 2004/05/30 11:57:43 per_nyfelt Exp $
Author:
SMB

Constructor Summary
CommandObject(org.w3c.dom.Node contextNode)
           XPath from Xt has problems with namespaces.
 
Method Summary
abstract  org.w3c.dom.Node execute()
           
abstract  boolean executeInstruction()
           
static org.xmldb.common.xml.queries.XPathQuery getXPath()
           
 void reset()
           
 void selectNodes(java.lang.String qString)
          The given XPath expression qString will be executed and will be used as the new context node - or if more then one node is selected - as an array of context nodes.
 void submitAttributes(java.util.Hashtable attributes)
           
 void submitCharacters(java.lang.String data)
           
abstract  boolean submitInstruction(int instruction)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandObject

public CommandObject(org.w3c.dom.Node contextNode)
              throws java.lang.Exception
XPath from Xt has problems with namespaces. To ensure correct working use the XPath from Xalan or any other namespace aware XPath implementation.

Parameters:
contextNode -
Method Detail

reset

public void reset()

selectNodes

public void selectNodes(java.lang.String qString)
                 throws java.lang.Exception
The given XPath expression qString will be executed and will be used as the new context node - or if more then one node is selected - as an array of context nodes. All given modifications will be affect the selected context node.

Parameters:
qString - the XPath expression that selects the new context node.
Throws:
java.lang.IllegalArgumentException - If the given XPath expression is null.
java.lang.Exception

submitAttributes

public void submitAttributes(java.util.Hashtable attributes)
Parameters:
attributes -

submitCharacters

public void submitCharacters(java.lang.String data)
Parameters:
data -

submitInstruction

public abstract boolean submitInstruction(int instruction)
                                   throws java.lang.Exception
Parameters:
instruction -
Throws:
java.lang.Exception

executeInstruction

public abstract boolean executeInstruction()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

execute

public abstract org.w3c.dom.Node execute()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

getXPath

public static org.xmldb.common.xml.queries.XPathQuery getXPath()

XML:DB Lexus

Copyright (c) 2002 The XML:DB Initiative All rights reserved