lux
Class QueryContext
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryContext
public QueryContext()
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 bindvalue - 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.