Name

XPathVariableResolver

Synopsis

This interface defines a single method to return the Object value of a variable identified by a qualified name. The value of a named variable is allowed to change between XPath evaluations, but implementations of this interface must ensure that no variable changes during the evaluation of an expression. Objects that implement this interface may be passed to the setXPathVariableResolver( ) methods of XPath or XPathFactory.

public interface XPathVariableResolver {
// Public Instance Methods
     Object resolveVariable(javax.xml.namespace.QName variableName);  
}

Passed To

XPath.setXPathVariableResolver( ), XPathFactory.setXPathVariableResolver( )

Returned By

XPath.getXPathVariableResolver( )

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.