|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xpath.XPathContext
Default class for the runtime execution context for XPath.
This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.
Field Summary | |
org.xml.sax.XMLReader |
m_primaryReader
The reader of the primary source tree. |
Constructor Summary | |
XPathContext()
Create an XPathContext instance. |
|
XPathContext(java.lang.Object owner)
Create an XPathContext instance. |
Method Summary | |
org.w3c.dom.Node |
getContextNode()
Get the current context node. |
ContextNodeList |
getContextNodeList()
Get the current context node list. |
org.w3c.dom.traversal.NodeIterator |
getContextNodes()
Get the current context node list. |
org.w3c.dom.Node |
getCurrentExpressionNode()
Get the current node that is the expression's context (i.e. |
org.w3c.dom.Node |
getCurrentNode()
Get the current context node. |
LocPathIterator |
getCurrentNodeList()
|
DOMHelper |
getDOMHelper()
Get the DOMHelper associated with this execution context. |
javax.xml.transform.ErrorListener |
getErrorListener()
Get the ErrorListener where errors and warnings are to be reported. |
ExtensionsTable |
getExtensionsTable()
Get the extensions table object. |
org.w3c.dom.Node |
getIteratorRoot()
Get the current location path iterator root. |
PrefixResolver |
getNamespaceContext()
Get the current namespace context for the xpath. |
java.lang.Object |
getOwnerObject()
Get the "owner" context of this context, which should be, in the case of XSLT, the Transformer object. |
org.xml.sax.XMLReader |
getPrimaryReader()
Get primary XMLReader associated with this execution context. |
javax.xml.transform.SourceLocator |
getSAXLocator()
Get the current locater in the stylesheet. |
SourceTreeManager |
getSourceTreeManager()
Get the SourceTreeManager associated with this execution context. |
SubContextList |
getSubContextList()
Get the current axes iterator, or return null if none. |
javax.xml.transform.URIResolver |
getURIResolver()
Get the URIResolver associated with this execution context. |
XObject |
getVariable(QName qname)
Given a name, locate a variable in the current context, and return the Object. |
VariableStack |
getVarStack()
Get the variable stack, which is in charge of variables and parameters. |
void |
popContextNodeList()
Pop the current context node list. |
void |
popCurrentExpressionNode()
Pop the current node that is the expression's context (i.e. |
void |
popCurrentNode()
Pop the current context node. |
void |
popCurrentNodeAndExpression()
Set the current context node. |
void |
popIteratorRoot()
Pop the current location path iterator root. |
void |
popSubContextList()
Pop the last pushed axes iterator. |
void |
pushContextNodeList(ContextNodeList nl)
Set the current context node list. |
void |
pushCurrentExpressionNode(org.w3c.dom.Node n)
Set the current node that is the expression's context (i.e. |
void |
pushCurrentNode(org.w3c.dom.Node n)
Set the current context node. |
void |
pushCurrentNodeAndExpression(org.w3c.dom.Node cn,
org.w3c.dom.Node en)
Set the current context node and expression node. |
void |
pushIteratorRoot(org.w3c.dom.Node n)
Set the current location path iterator root. |
void |
pushSubContextList(SubContextList iter)
Push a TreeWalker on the stack. |
void |
reset()
Reset for new run. |
void |
setDOMHelper(DOMHelper helper)
Set the DOMHelper associated with this execution context. |
void |
setErrorListener(javax.xml.transform.ErrorListener listener)
Set the ErrorListener where errors and warnings are to be reported. |
void |
setNamespaceContext(PrefixResolver pr)
Get the current namespace context for the xpath. |
void |
setPrimaryReader(org.xml.sax.XMLReader reader)
Set primary XMLReader associated with this execution context. |
void |
setSAXLocator(javax.xml.transform.SourceLocator location)
Set the current locater in the stylesheet. |
void |
setSourceTreeManager(SourceTreeManager mgr)
Set the SourceTreeManager associated with this execution context. |
void |
setURIResolver(javax.xml.transform.URIResolver resolver)
Set the URIResolver associated with this execution context. |
void |
setVarStack(VariableStack varStack)
Get the variable stack, which is in charge of variables and parameters. |
double |
toNumber(org.w3c.dom.Node n)
Get the value of a node as a number. |
java.lang.String |
toString(org.w3c.dom.Node n)
Get the value of a node as a string. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public org.xml.sax.XMLReader m_primaryReader
Constructor Detail |
public XPathContext()
public XPathContext(java.lang.Object owner)
owner
- Value that can be retrieved via the getOwnerObject() method.getOwnerObject()
Method Detail |
public void reset()
public void setSAXLocator(javax.xml.transform.SourceLocator location)
location
- The location within the stylesheet.public javax.xml.transform.SourceLocator getSAXLocator()
public java.lang.Object getOwnerObject()
public ExtensionsTable getExtensionsTable()
public VariableStack getVarStack()
public void setVarStack(VariableStack varStack)
varStack
- non-null reference to the variable stack.public XObject getVariable(QName qname) throws javax.xml.transform.TransformerException
qname
- The qualified name of a variable.public final DOMHelper getDOMHelper()
public void setDOMHelper(DOMHelper helper)
helper
- reference to a dom helper to be associated with this
execution context.public final SourceTreeManager getSourceTreeManager()
public void setSourceTreeManager(SourceTreeManager mgr)
mgr
- the SourceTreeManager to be associated with this
execution context.public final javax.xml.transform.ErrorListener getErrorListener()
public void setErrorListener(javax.xml.transform.ErrorListener listener) throws java.lang.IllegalArgumentException
listener
- A non-null ErrorListener reference.public final javax.xml.transform.URIResolver getURIResolver()
public void setURIResolver(javax.xml.transform.URIResolver resolver)
resolver
- the URIResolver to be associated with this
execution context, may be null to clear an already set resolver.public final org.xml.sax.XMLReader getPrimaryReader()
public void setPrimaryReader(org.xml.sax.XMLReader reader)
reader
- The reader of the primary source tree.public final ContextNodeList getContextNodeList()
public final void pushContextNodeList(ContextNodeList nl)
nl
- the current node list,
also refered to here as a public final void popContextNodeList()
public final org.w3c.dom.Node getCurrentNode()
public final void pushCurrentNodeAndExpression(org.w3c.dom.Node cn, org.w3c.dom.Node en)
cn
- the current node.en
- the sub-expression context node.public final void popCurrentNodeAndExpression()
public final void pushCurrentNode(org.w3c.dom.Node n)
n
- the current node.public final void popCurrentNode()
public final org.w3c.dom.Node getCurrentExpressionNode()
public final void pushCurrentExpressionNode(org.w3c.dom.Node n)
n
- The sub-expression node to be current.public final void popCurrentExpressionNode()
public final PrefixResolver getNamespaceContext()
public final void setNamespaceContext(PrefixResolver pr)
pr
- the prefix resolver to be used for resolving prefixes to
namespace URLs.public final void pushIteratorRoot(org.w3c.dom.Node n)
public final void popIteratorRoot()
public final org.w3c.dom.Node getIteratorRoot()
public final void pushSubContextList(SubContextList iter)
iter
- A sub-context AxesWalker.public final void popSubContextList()
public SubContextList getSubContextList()
public LocPathIterator getCurrentNodeList()
public final org.w3c.dom.Node getContextNode()
public final org.w3c.dom.traversal.NodeIterator getContextNodes()
public final double toNumber(org.w3c.dom.Node n)
n
- Node to be converted to a number. May be null.public final java.lang.String toString(org.w3c.dom.Node n)
n
- Node to be converted to a string. May be null.
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |