lux
Class QueryContext

java.lang.Object
  extended by lux.QueryContext

public class QueryContext
extends Object

Holds external query context: variable bindings and the context item. TODO: convert java primitives to XdmValues? Currently the Evaluator expects XdmValues.


Constructor Summary
QueryContext()
           
 
Method Summary
 void bindVariable(QName varName, Object value)
          bind an external variable so that it will be available in the scope of queries evaluated using this context
 Object getContextItem()
           
 Map<QName,Object> getVariableBindings()
           
 void setContextItem(Object contextItem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryContext

public QueryContext()
Method Detail

bindVariable

public void bindVariable(QName varName,
                         Object value)
bind an external variable so that it will be available in the scope of queries evaluated using this context

Parameters:
varName - the name of the variable to bind
value - the value to bind to the variable; this must be of an XdmValue, or a java primitive that can be converted to an XdmAtomicValue, or null to clear any existing binding.

getVariableBindings

public Map<QName,Object> getVariableBindings()

setContextItem

public void setContextItem(Object contextItem)

getContextItem

public Object getContextItem()


Copyright © 2013. All Rights Reserved.