org.inria.ns.reflex.xml.xpath.pattern
Interface PatternContext

All Known Subinterfaces:
XPathContext
All Known Implementing Classes:
JaxenXPathContext, XPathContext.Impl

public interface PatternContext

Hold a context when evaluating an XPath expression. XPath contexts are needed when executing an XPath expression to retrieve variable values, functions and to resolve namespace URIs.

Author:
Philippe Poulard

Method Summary
 NamespaceContext getNamespaceContext()
          Get the namespace context for prefix resolution.
 XFactory getXFactory()
          Return the non-null factory that built this XPath context.
 XPathFunctionResolver getXPathFunctionResolver()
          Get the resolver that is able to resolve XPath functions.
 XPathVariableResolver getXPathVariableResolver()
          Get the resolver that is able to retrieve the value of the variables.
 void setNamespaceContext(NamespaceContext nsContext)
          Set the namespace context for prefix resolution.
 void setXPathFunctionResolver(XPathFunctionResolver functionResolver)
          Set the resolver that is able to resolve XPath functions.
 void setXPathVariableResolver(XPathVariableResolver variableResolver)
          Set the resolver that is able to retrieve the value of the variables.
 

Method Detail

getXFactory

XFactory getXFactory()
Return the non-null factory that built this XPath context.

Returns:
The factory that built this XPath context.

setNamespaceContext

void setNamespaceContext(NamespaceContext nsContext)
Set the namespace context for prefix resolution.

Parameters:
nsContext - The namespace context that is able to retrieve namespace URIs.

setXPathVariableResolver

void setXPathVariableResolver(XPathVariableResolver variableResolver)
Set the resolver that is able to retrieve the value of the variables.

Parameters:
variableResolver - The variable resolver.

setXPathFunctionResolver

void setXPathFunctionResolver(XPathFunctionResolver functionResolver)
Set the resolver that is able to resolve XPath functions.

Parameters:
functionResolver - The resolver that is able to resolve XPath functions.

getNamespaceContext

NamespaceContext getNamespaceContext()
Get the namespace context for prefix resolution.

Returns:
The namespace context that is able to retrieve namespace URIs, or null.

getXPathVariableResolver

XPathVariableResolver getXPathVariableResolver()
Get the resolver that is able to retrieve the value of the variables.

Returns:
The variable resolver, or null.

getXPathFunctionResolver

XPathFunctionResolver getXPathFunctionResolver()
Get the resolver that is able to resolve XPath functions.

Returns:
The resolver that is able to resolve XPath functions.