org.inria.ns.reflex.processor
Class DataSet.DataSetContext

java.lang.Object
  extended by org.inria.ns.reflex.processor.DataSet.DataSetContext
All Implemented Interfaces:
XPathVariableResolver
Enclosing class:
DataSet

public class DataSet.DataSetContext
extends Object
implements XPathVariableResolver

A view of this data set as a variable context.


Constructor Summary
DataSet.DataSetContext()
           
 
Method Summary
 DataSet getDataSet()
          Return the data set that is backed by this variable context.
 Object resolveVariable(QName variableName)
          Return the value of an XPath variable based on the namespace URI and local name of the variable-reference expression.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSet.DataSetContext

public DataSet.DataSetContext()
Method Detail

resolveVariable

public Object resolveVariable(QName variableName)
                       throws NamespaceException
Return the value of an XPath variable based on the namespace URI and local name of the variable-reference expression.

Specified by:
resolveVariable in interface XPathVariableResolver
Parameters:
namespaceURI - The namespace URI to which the prefix parameter is bound in the XPath expression. If the variable reference expression had no prefix, the namespace URI is null.
prefix - The prefix that was used in the variable reference expression.
localName - The local name of the variable-reference expression; if there is no prefix, then this is the whole name of the variable.
Returns:
The variable's value (which can be null).
Throws:
NamespaceException - If the prefix of the variable is not bound to a namespace URI

getDataSet

public DataSet getDataSet()
Return the data set that is backed by this variable context.

Returns:
The data set that is backed by this variable context.