org.exolab.adaptx.xslt
public class ProcessorState extends XPathContext
Version: $Revision: 4778 $ $Date: 2004-09-28 16:57:15 -0400 (Tue, 28 Sep 2004) $
Field Summary | |
---|---|
static String | ECMASCRIPT |
static String | JPYTHON |
Method Summary | |
---|---|
void | associateNamespace(String nsPrefix, String nsURI)
Associates a namespace with the given prefix, |
String | generateId(XPathNode node)
Creates a unique identifier for the given node |
AttributeValueTemplate | getAttributeValueTemplate(String avtString)
Returns the value of the given String as an AttributeValueTemplate
|
XPathNode | getCurrentNode()
Returns the "current" node
The current node, is different than the context node, as
the context node may change during the evaluation of an
xpath expression, the current node does not. |
int[] | getDocumentOrder(XPathNode node)
Returns the document order of the given node.
|
String | getDocumentURI(XPathNode node)
Returns the document URI of the given XPathNode,
or null if it's not found |
XPathNode | getElementById(XPathNode root, String id)
Returns the element associated with the given identifier.
|
ErrorObserver | getErrorObserver()
Returns the ErrorObserver to report errors to |
XPathFunction | getFunction(String name)
Returns the XPathFunction with the given name and belonging
to the given namespace.
|
XPathFunction | getFunction(String namespace, String name)
Returns the XPathFunction with the given name and belonging
to the given namespace.
|
String | getNamespaceURI(String prefix)
Returns the namespace associated with the given prefix.
|
XPathNode | getNode()
Returns the context node of this XPathContext
|
NodeSet | getNodeSet()
Returns the current context node-set.
|
String | getParameter(String name)
Returns the parameter value associated with the given name. |
ScopedVariableSet | getParameters() |
int | getPosition()
Returns the position of the context node. |
String | getProperty(String name)
Returns the Property value associated with the given name.
|
int | getSize()
Returns the size of the context.
|
URILocation | getStylesheetLocation() |
URIResolver | getURIResolver()
Returns the URIResolver for resolving all URIs.
|
XPathResult | getVariable(String name)
Returns the XPath result bound to the given variable name.
|
QuickStack | getXMLSpaceModes()
Returns the stack of XML space modes
|
boolean | isFunctionAvailable(String name, String namespace)
Returns true if a function with the given name exists
within the given namespace.
|
boolean | isXSLTNamespace(String prefixOrURI)
Determines if the given prefix or URI maps to the XSLT namespace |
XPathNode | popCurrentNode()
Removes the current node from the top of the stack
The current node, is different than the context node, as
the context node may change during the evaluation of an
xpath expression, the current node does not. |
ResultHandler | popHandler()
Removes and returns the ResultHandler from the top of the
ResultHandler stack.
|
NodeSet | popNodeSet()
Removes and returns the current NodeSet from the context stack
|
void | pushCurrentNode(XPathNode node)
Adds the given node to the top of the "current" node Stack.
|
void | pushHandler(ResultHandler handler)
Pushes a new ResultHandler to the top of the ResultHandler stack.
|
void | pushNodeSet(NodeSet nodeSet)
Pushes the given nodeSet onto the context stack
|
void | setNodeSet(NodeSet nodeSet, int position)
Sets the given node-set as the context node-set for
this XPathContext
|
void | setPosition(int position)
Sets the position of the context node within the context
node-set
|
Parameters: nsPrefix the namespace prefix nsURI the namespace URI to associate
Returns: the String that is a unique identifier for the given node
Throws: InvalidExprException when the String argument is not a valid AttrubueValueTemplate
UNKNOWN: the value of the given String as an AttributeValueTemplate
Returns: the "current" node
See Also: popCurrentNode pushCurrentNode
Returns: The document order of the given node
Parameters: root The root node id The element's identifier
Returns: The first element in document order with the given identifier, or null if no such element was found
Returns: the ErrorObserver to report errors to
Parameters: namespace the namespace of the function name the name of the function
Returns: the XPathFunction with the given name
Parameters: namespace the namespace of the function name the name of the function
Returns: the XPathFunction with the given name
Parameters: prefix the prefix of the namespace to return
Returns: the namespace prefix or null if none found.
Returns: the context node
Returns: The current context node-set
Parameters: name the name of the parameter to retrieve the value of
Returns: the parameter value associated with the given name.
Returns: The position of the context node
See Also: ProcessorState
Parameters: name the name of the property to get the value of
Returns: the Property value associated with the given name.
Returns: The size of the context
Returns: the URIResolver for resolving all URIs.
Parameters: name The variable name
Returns: The variable's value
Returns: true if a function with the given name exists
Parameters: prefixOrURI the prefix or URI to compare with the XSLT namespace
Returns: true if the given prefix or URI maps to the XSLT namespace
Returns: the current node.
See Also: pushCurrentNode getCurrentNode
Returns: the ResultHandler that was at the top of the stack.
Returns: the current NodeSet from the context stack
Parameters: node the new current node
See Also: popCurrentNode getCurrentNode
Parameters: handler the ResultHandler to push to the top of the stack.
Parameters: nodeSet the nodeSet ot push onto the stack
Parameters: nodeSet the node-set to use as the context node-set. position the position of the context node
Parameters: the position of the context node within the context node-set
Throws: IndexOutOfBoundsException when the position is not within the bounds of the context node-set.