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

Method item

basex-api/src/main/java/org/basex/query/func/ws/WsSet.java:17–25  ·  view source on GitHub ↗
(final QueryContext qc, final InputInfo ii)

Source from the content-addressed store, hash-verified

15 */
16public final class WsSet extends WsFn {
17 @Override
18 public Item item(final QueryContext qc, final InputInfo ii) throws QueryException {
19 final WebSocket client = client(qc);
20 final String key = toString(arg(1), qc);
21 final Value value = arg(2).value(qc);
22
23 client.atts.put(key, value.materialize(n -> false, info, qc));
24 return Empty.VALUE;
25 }
26}

Callers

nothing calls this directly

Calls 6

materializeMethod · 0.95
toStringMethod · 0.65
clientMethod · 0.45
argMethod · 0.45
valueMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected