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

Method string

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

Returns the string representation of a query result. @param query query string @param value optional context @param context database context @return optional expected test suite result

(final String query, final XdmValue value, final Context context)

Source from the content-addressed store, hash-verified

290 * @return optional expected test suite result
291 */
292 public static String string(final String query, final XdmValue value, final Context context) {
293 final XdmValue xv = new XQuery(query, context).context(value).value();
294 return xv.size() == 0 ? "" : xv.getString();
295 }
296
297 @Override
298 public String toString() {

Callers 4

QT3EnvMethod · 0.95
asStringMethod · 0.95
getStringMethod · 0.45
getStringMethod · 0.45

Calls 4

sizeMethod · 0.95
getStringMethod · 0.95
valueMethod · 0.45
contextMethod · 0.45

Tested by

no test coverage detected