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

Method value

basex-api/src/main/java/org/basex/http/rest/RESTPost.java:140–147  ·  view source on GitHub ↗

Returns the atomized item for the specified query. @param query query @param value context value @param ctx database context @return atomized item @throws QueryException query exception

(final String query, final Item value, final Context ctx)

Source from the content-addressed store, hash-verified

138 * @throws QueryException query exception
139 */
140 private static String value(final String query, final Item value, final Context ctx)
141 throws QueryException {
142
143 try(QueryProcessor qp = new QueryProcessor(query, ctx).context(value)) {
144 final Item item = qp.iter().next();
145 return item == null ? "" : Token.string(item.string(null));
146 }
147 }
148}

Callers 12

getMethod · 0.95
serviceMethod · 0.45
initParamsMethod · 0.45
addParamsMethod · 0.45
parseAnnotationsMethod · 0.45
parseMethod · 0.45
bindMethod · 0.45
stringsMethod · 0.45
paramMethod · 0.45
errorMethod · 0.45
parseAnnotationsMethod · 0.45
bindMethod · 0.45

Calls 5

stringMethod · 0.95
stringMethod · 0.95
nextMethod · 0.65
iterMethod · 0.65
contextMethod · 0.45

Tested by

no test coverage detected