Binds a value to a global variable or the context value. The arguments will be ignored if a value has already been assigned. The specified type is interpreted as follows: If "json" is specified, the value is converted according to the rules specified in {@link JsonW3Conver
(final String name, final Object value, final String type, final StaticContext sc)
| 460 | * @throws QueryException query exception |
| 461 | */ |
| 462 | public void bind(final String name, final Object value, final String type, final StaticContext sc) |
| 463 | throws QueryException { |
| 464 | final QNm qnm = name == null || name.isEmpty() ? QNm.EMPTY : qname(name, sc); |
| 465 | if(!bindings.contains(qnm)) bindings.put(qnm, cast(value, type)); |
| 466 | } |
| 467 | |
| 468 | /** |
| 469 | * Adds some evaluation info. |