public class QueryContext extends Object
| Constructor and Description |
|---|
QueryContext() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public void bindVariable(QName varName, Object value)
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.public void setContextItem(Object contextItem)
public Object getContextItem()
Copyright © 2013. All Rights Reserved.