org.xmldb.xupdate.lexus.commands
Class CommandObject
java.lang.Object
|
+--org.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.1.1 2002/01/30 09:46:44 lars 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.infozone.tools.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 |
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
-
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.
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
-
executeInstruction
public abstract boolean executeInstruction()
throws java.lang.Exception
execute
public abstract org.w3c.dom.Node execute()
throws java.lang.Exception
getXPath
public static org.infozone.tools.xml.queries.XPathQuery getXPath()
- Returns:
-
Copyright (c) 2001 The XML:DB Initiative All rights reserved