org.inria.ns.reflex.xml.xpath
Interface XPathContext

All Superinterfaces:
PatternContext
All Known Implementing Classes:
JaxenXPathContext, XPathContext.Impl

public interface XPathContext
extends 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. A node set may also be used when evaluating relative XPath expression.

Author:
Philippe Poulard

Nested Class Summary
static class XPathContext.Impl
          Hold a context when evaluating an XPath expression.
 
Method Summary
 List getNodeSet()
          Get the node set used as the context.
 int getPosition()
          Get the position of the context.
 int getSize()
          Get the size of the context.
 void setNodeSet(List nodeSet)
          Set the node set used as the context.
 void setPosition(int position)
          Set the position of the context.
 void setSize(int size)
          Set the size of the context.
 
Methods inherited from interface org.inria.ns.reflex.xml.xpath.pattern.PatternContext
getNamespaceContext, getXFactory, getXPathFunctionResolver, getXPathVariableResolver, setNamespaceContext, setXPathFunctionResolver, setXPathVariableResolver
 

Method Detail

getSize

int getSize()
Get the size of the context.

Returns:
The size of the context.

setSize

void setSize(int size)
Set the size of the context.

Parameters:
size - The size of the context.

getPosition

int getPosition()
Get the position of the context.

Returns:
The position of the context.

setPosition

void setPosition(int position)
Set the position of the context.

Parameters:
position - The position of the context.

getNodeSet

List getNodeSet()
Get the node set used as the context.

Returns:
The the node set used as the context.

setNodeSet

void setNodeSet(List nodeSet)
Set the node set used as the context.

Parameters:
nodeSet - The node set as the context to use.