MCPcopy Create free account
hub / github.com/BaseXdb/basex / variable

Method variable

basex-tests/src/main/java/org/basex/tests/bxapi/XQuery.java:60–67  ·  view source on GitHub ↗

Binds a variable. @param key key @param value value to be bound @return self reference @throws XQueryException exception

(final String key, final XdmValue value)

Source from the content-addressed store, hash-verified

58 * @throws XQueryException exception
59 */
60 public XQuery variable(final String key, final XdmValue value) {
61 try {
62 qp.variable(key, value.internal());
63 return this;
64 } catch(final QueryException ex) {
65 throw new XQueryException(ex);
66 }
67 }
68
69 /**
70 * Declares a namespace.

Callers 11

contextMethod · 0.95
testCaseMethod · 0.95
assertTypeMethod · 0.95
mainMethod · 0.45
environmentMethod · 0.45
assertQueryMethod · 0.45
assertEqMethod · 0.45
serializationMatchesMethod · 0.45
fileMethod · 0.45
varMethod · 0.45
evalMethod · 0.45

Calls 1

internalMethod · 0.45

Tested by

no test coverage detected