org.apache.xpath.jaxp

Class JAXPVariableStack

Implemented Interfaces:
Cloneable

public class JAXPVariableStack
extends VariableStack

Overrides VariableStack and delegates the call to javax.xml.xpath.XPathVariableResolver.
Author:
Ramesh Mandava ( ramesh.mandava@sun.com )

Field Summary

Fields inherited from class org.apache.xpath.VariableStack

CLEARLIMITATION

Constructor Summary

JAXPVariableStack(XPathVariableResolver resolver)

Method Summary

XObject
getVariableOrParam(XPathContext xctxt, QName qname)
Get a variable based on it's qualified name.

Methods inherited from class org.apache.xpath.VariableStack

clearLocalSlots, clone, elementAt, getGlobalVariable, getGlobalVariable, getLocalVariable, getLocalVariable, getLocalVariable, getStackFrame, getVariableOrParam, isLocalSet, link, reset, setGlobalVariable, setLocalVariable, setLocalVariable, setStackFrame, size, unlink, unlink

Constructor Details

JAXPVariableStack

public JAXPVariableStack(XPathVariableResolver resolver)

Method Details

getVariableOrParam

public XObject getVariableOrParam(XPathContext xctxt,
                                  QName qname)
            throws TransformerException,
                   IllegalArgumentException
Get a variable based on it's qualified name. This is for external use only.
Overrides:
getVariableOrParam in interface VariableStack
Parameters:
xctxt - The XPath context, which must be passed in order to lazy evaluate variables.
qname - The qualified name of the variable.
Returns:
The evaluated value of the variable.

Copyright B) 2006 Apache XML Project. All Rights Reserved.