public class QueryContext extends Object
| Constructor and Description |
|---|
QueryContext()
A query context with no context item
|
QueryContext(Object contextItem)
A query context with the context item defined
|
| 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 QueryContext()
public QueryContext(Object contextItem)
contextItem - defining the context item of a querypublic 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.