org.xmldb.xupdate.lexus.commands
Class CommandConstants
java.lang.Object
|
+--org.xmldb.xupdate.lexus.commands.CommandConstants
- public class CommandConstants
- extends java.lang.Object
This class represents all XUpdate commands as Integer values. It returns
the Integer for the given String and also the Commandobject for the given
Integer.
- Version:
- $Id: CommandConstants.java,v 1.1.1.1 2002/01/30 09:46:44 lars Exp $
- Author:
- SMB
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROOT_ELEMENT
public static final int ROOT_ELEMENT
COMMAND_COUNT
public static final int COMMAND_COUNT
COMMAND_REMOVE
public static final int COMMAND_REMOVE
COMMAND_RENAME
public static final int COMMAND_RENAME
COMMAND_UPDATE
public static final int COMMAND_UPDATE
COMMAND_VARIABLE
public static final int COMMAND_VARIABLE
COMMAND_APPEND
public static final int COMMAND_APPEND
COMMAND_INSERT_BEFORE
public static final int COMMAND_INSERT_BEFORE
COMMAND_INSERT_AFTER
public static final int COMMAND_INSERT_AFTER
INSTRUCTION_ELEMENT
public static final int INSTRUCTION_ELEMENT
INSTRUCTION_ATTRIBUTE
public static final int INSTRUCTION_ATTRIBUTE
INSTRUCTION_COMMENT
public static final int INSTRUCTION_COMMENT
INSTRUCTION_TEXT
public static final int INSTRUCTION_TEXT
INSTRUCTION_CDATA
public static final int INSTRUCTION_CDATA
INSTRUCTION_PROCESSING_INSTRUCTION
public static final int INSTRUCTION_PROCESSING_INSTRUCTION
INSTRUCTION_VALUE_OF
public static final int INSTRUCTION_VALUE_OF
ATTRIBUTES
public static final int ATTRIBUTES
CHARACTERS
public static final int CHARACTERS
_contextNode
public static org.w3c.dom.Node _contextNode
_tempTree
public static TempTree _tempTree
CommandConstants
public CommandConstants()
idForString
public int idForString(java.lang.String localName)
- Maps the given String to a Integer value.
- Parameters:
localName
- the name of a XUpdate-command.- Returns:
- the Integer value for this String. If there is no such XUpdate
command, it returns 0.
commandForID
public CommandObject commandForID(int id)
- Maps the given integer to a COMMAND object.
- Parameters:
id
- the ID for a XUpdate command.- Returns:
- the object which performs the XUpdate operation. If there is a
no such ID or the given ID stands for an instruction it returns
null.
setContextNode
public void setContextNode(org.w3c.dom.Node node)
throws java.lang.Exception
- Sets the contextNode which is to be updated and initializes the objects
for each XUpdate operation.
- Parameters:
node
- the contextNode which is to be updated.- Throws:
java.lang.IllegalArgumentException
- if node is null.
isInsertOperation
public boolean isInsertOperation(int id)
- Returns:
- true if the given id is an insert operation
isInstruction
public boolean isInstruction(int id)
- Returns:
- true if the given id is an instruction
Copyright (c) 2001 The XML:DB Initiative All rights reserved