Class JSTLXPathVariableResolver
- java.lang.Object
-
- org.apache.taglibs.standard.tag.common.xml.JSTLXPathVariableResolver
-
- All Implemented Interfaces:
XPathVariableResolver
public class JSTLXPathVariableResolver extends Object implements XPathVariableResolver
The XPathVariableResolver implementation provides access to user XPath variables.
-
-
Constructor Summary
Constructors Constructor Description JSTLXPathVariableResolver(jakarta.servlet.jsp.PageContext pc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectgetVariableValue(String namespace, String prefix, String localName)Retrieve an XPath's variable value using JSTL's custom variable-mapping rulesObjectresolveVariable(QName qname)Find variable in set of variables
-
-
-
Method Detail
-
resolveVariable
public Object resolveVariable(QName qname) throws NullPointerException
Find variable in set of variables- Specified by:
resolveVariablein interfaceXPathVariableResolver- Parameters:
qname- QName variable name- Returns:
- QName variables value
- Throws:
NullPointerException- if variable name is null
-
getVariableValue
protected Object getVariableValue(String namespace, String prefix, String localName) throws UnresolvableException
Retrieve an XPath's variable value using JSTL's custom variable-mapping rules- Throws:
UnresolvableException
-
-