|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xpath.XPathContext
**For advanced use only** Default class for the runtime execution context for XPath.
Field Summary | |
XMLReader |
m_primaryReader
**For advanced use only** |
Constructor Summary | |
XPathContext()
**For advanced use only** Create an XPathContext instance. |
|
XPathContext(java.lang.Object owner)
**For advanced use only** Create an XPathContext instance. |
Method Summary | |
void |
copyFromOtherLiaison(XPathContext from)
**For advanced use only** Copy attributes from another liaison. |
java.lang.String |
getAbsoluteURI(java.lang.String urlString,
java.lang.String base)
**For advanced use only** Take a user string (system ID) return the url. |
Node |
getContextNode()
**For advanced use only** Get the current context node. |
ContextNodeList |
getContextNodeList()
**For advanced use only** Get the current context node list. |
NodeIterator |
getContextNodes()
**For advanced use only** Get the current context node list. |
Node |
getCurrentExpressionNode()
**For advanced use only** Get the current node that is the expression's context (i.e. |
Node |
getCurrentNode()
**For advanced use only** Get the current context node. |
DOMHelper |
getDOMHelper()
**For advanced use only** Get the DOMHelper associated with this execution context. |
ExtensionsTable |
getExtensionsTable()
**For advanced use only** Get the extensions table object. |
PrefixResolver |
getNamespaceContext()
**For advanced use only** Get the current namespace context for the xpath. |
java.lang.Object |
getOwnerObject()
**For advanced use only** Get the "owner" context of this context, which should be, in the case of XSLT, the Transformer object. |
XMLReader |
getPrimaryReader()
**For advanced use only** Get primary XMLReader associated with this execution context. |
Locator |
getSAXLocator()
**For advanced use only** |
SourceTreeManager |
getSourceTreeManager()
**For advanced use only** Get the DOMHelper associated with this execution context. |
SubContextList |
getSubContextList()
**For internal use only** Get the current axes iterator, or return null if none. |
URIResolver |
getURIResolver()
**For advanced use only** Get the URIResolver associated with this execution context. |
XObject |
getVariable(QName qname)
**For advanced use only** Given a name, locate a variable in the current context, and return the Object. |
VariableStack |
getVarStack()
**For advanced use only** Get the variable stack, which is in charge of variables and parameters. |
void |
popContextNodeList()
**For internal use only** Pop the current context node list. |
void |
popCurrentExpressionNode()
**For advanced use only** Pop the current node that is the expression's context (i.e. |
void |
popCurrentNode()
**For advanced use only** Pop the current context node. |
void |
popCurrentNodeAndExpression()
**For advanced use only** Set the current context node. |
void |
popSubContextList()
**For internal use only** Pop the last pushed axes iterator. |
void |
pushContextNodeList(ContextNodeList nl)
**For internal use only** Set the current context node list. |
void |
pushCurrentExpressionNode(Node n)
**For advanced use only** Set the current node that is the expression's context (i.e. |
void |
pushCurrentNode(Node n)
**For advanced use only** Set the current context node. |
void |
pushCurrentNodeAndExpression(Node cn,
Node en)
**For advanced use only** Set the current context node. |
void |
pushSubContextList(SubContextList iter)
**For internal use only** Push a TreeWalker on the stack. |
void |
reset()
**For advanced use only** Reset for new run. |
void |
setDOMHelper(DOMHelper helper)
**For advanced use only** Set the DOMHelper associated with this execution context. |
void |
setNamespaceContext(PrefixResolver pr)
**For advanced use only** Get the current namespace context for the xpath. |
void |
setPrimaryReader(XMLReader reader)
**For advanced use only** Set primary XMLReader associated with this execution context. |
void |
setSAXLocator(Locator location)
**For advanced use only** |
void |
setSourceTreeManager(SourceTreeManager mgr)
**For advanced use only** Set the DOMHelper associated with this execution context. |
void |
setURIResolver(URIResolver resolver)
**For advanced use only** Set the URIResolver associated with this execution context. |
void |
setVarStack(VariableStack varStack)
**For advanced use only** Get the variable stack, which is in charge of variables and parameters. |
double |
toNumber(Node n)
**For advanced use only** Get the value of a node as a number. |
java.lang.String |
toString(Node n)
**For advanced use only** Get the value of a node as a string. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public XMLReader m_primaryReader
Constructor Detail |
public XPathContext()
public XPathContext(java.lang.Object owner)
owner
- Value that can be retreaved via the getOwnerObject() method.getOwnerObject
Method Detail |
public void copyFromOtherLiaison(XPathContext from) throws SAXException
public void reset()
public void setSAXLocator(Locator location)
public Locator getSAXLocator()
public java.lang.Object getOwnerObject()
public ExtensionsTable getExtensionsTable()
public VariableStack getVarStack()
public void setVarStack(VariableStack varStack)
public XObject getVariable(QName qname) throws SAXException
public final DOMHelper getDOMHelper()
public void setDOMHelper(DOMHelper helper)
public final SourceTreeManager getSourceTreeManager()
public void setSourceTreeManager(SourceTreeManager mgr)
public final URIResolver getURIResolver()
public void setURIResolver(URIResolver resolver)
public final XMLReader getPrimaryReader()
public void setPrimaryReader(XMLReader reader)
public final java.lang.String getAbsoluteURI(java.lang.String urlString, java.lang.String base) throws SAXException
public final ContextNodeList getContextNodeList()
public final void pushContextNodeList(ContextNodeList nl)
A
- nodelist that represents the current context
list as defined by XPath.public final void popContextNodeList()
public final Node getCurrentNode()
public final void pushCurrentNodeAndExpression(Node cn, Node en)
public final void popCurrentNodeAndExpression()
public final void pushCurrentNode(Node n)
public final void popCurrentNode()
public final Node getCurrentExpressionNode()
public final void pushCurrentExpressionNode(Node n)
public final void popCurrentExpressionNode()
public final PrefixResolver getNamespaceContext()
public final void setNamespaceContext(PrefixResolver pr)
public final void pushSubContextList(SubContextList iter)
public final void popSubContextList()
public SubContextList getSubContextList()
public final Node getContextNode()
public final NodeIterator getContextNodes()
public final double toNumber(Node n)
n
- Node to be converted to a number. May be null.public final java.lang.String toString(Node n)
n
- Node to be converted to a string. May be null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |