public class Context extends Object implements Serializable
NOTE: This class is not typically used directly, but is exposed for writers of implementation-specific XPath packages.
The Context bundles utilities together
for evaluation of the expression. It wraps the provided
objects for ease-of-passage through the expression AST.
ContextSupport,
BaseXPath,
XPath for dom4j,
XPath for JDOM,
XPath for W3C DOM,
XPath for Electric XML,
Serialized Form| Constructor and Description |
|---|
Context(ContextSupport contextSupport) |
| Modifier and Type | Method and Description |
|---|---|
Context |
duplicate() |
ContextSupport |
getContextSupport() |
Function |
getFunction(String namespaceURI,
String prefix,
String localName) |
Navigator |
getNavigator() |
List |
getNodeSet() |
int |
getPosition() |
int |
getSize() |
Object |
getVariableValue(String namespaceURI,
String prefix,
String localName) |
void |
setContextSupport(ContextSupport contextSupport) |
void |
setNodeSet(List nodeSet) |
void |
setPosition(int position) |
void |
setSize(int size) |
String |
translateNamespacePrefixToUri(String prefix) |
public Context(ContextSupport contextSupport)
public List getNodeSet()
public void setNodeSet(List nodeSet)
public ContextSupport getContextSupport()
public void setContextSupport(ContextSupport contextSupport)
public Navigator getNavigator()
public Object getVariableValue(String namespaceURI, String prefix, String localName) throws UnresolvableException
UnresolvableExceptionpublic Function getFunction(String namespaceURI, String prefix, String localName) throws UnresolvableException
UnresolvableExceptionpublic void setSize(int size)
public void setPosition(int position)
public int getSize()
public int getPosition()
public Context duplicate()
Copyright © 2013. All Rights Reserved.