|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jaxen.Context
Wrapper around implementation-specific objects used as the context of an expression evaluation.
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,
Serialized Form| Constructor Summary | |
Context(ContextSupport contextSupport)
Create a new context. |
|
| Method Summary | |
Context |
duplicate()
Create a type-safe shallow copy. |
ContextSupport |
getContextSupport()
Retrieve the ContextSupport. |
Function |
getFunction(java.lang.String namespaceURI,
java.lang.String prefix,
java.lang.String localName)
Retrieve a Function. |
Navigator |
getNavigator()
Retrieve the current Navigator. |
java.util.List |
getNodeSet()
Retrieve the context node-set. |
int |
getPosition()
Retrieve current position in the context node-set. |
int |
getSize()
Retrieve the size of the context node-set. |
java.lang.Object |
getVariableValue(java.lang.String namespaceURI,
java.lang.String prefix,
java.lang.String localName)
Retrieve a variable value. |
void |
setContextSupport(ContextSupport contextSupport)
Set the ContextSupport. |
void |
setNodeSet(java.util.List nodeSet)
Set the context node-set. |
void |
setPosition(int position)
Set the current position in the context node-set. |
void |
setSize(int size)
Set the current size in the context node-set. |
java.lang.String |
translateNamespacePrefixToUri(java.lang.String prefix)
Translate a namespace prefix to its URI. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Context(ContextSupport contextSupport)
contextSupport - the context-support| Method Detail |
public void setNodeSet(java.util.List nodeSet)
nodeSet - the context node-setpublic java.util.List getNodeSet()
public void setContextSupport(ContextSupport contextSupport)
ContextSupport.
contextSupport - the context-supportpublic ContextSupport getContextSupport()
ContextSupport.
public Navigator getNavigator()
Navigator.
public java.lang.String translateNamespacePrefixToUri(java.lang.String prefix)
prefix - the prefix
public java.lang.Object getVariableValue(java.lang.String namespaceURI,
java.lang.String prefix,
java.lang.String localName)
throws UnresolvableException
namespaceURI - the function namespace URIprefix - the function prefixlocalName - the function name
UnresolvableException - if unable to locate a bound variable
public Function getFunction(java.lang.String namespaceURI,
java.lang.String prefix,
java.lang.String localName)
throws UnresolvableException
Function.
namespaceURI - the function namespace URIprefix - the function prefixlocalName - the function name
UnresolvableException - if unable to locate a bound functionpublic void setSize(int size)
size - the sizepublic int getSize()
public void setPosition(int position)
position - the positionpublic int getPosition()
public Context duplicate()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||