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

Method values

basex-core/src/main/java/org/basex/data/Namespaces.java:199–205  ·  view source on GitHub ↗

Returns all namespace prefixes and URIs that are declared for the specified PRE value. Should only be called for element nodes. @param pre PRE value @param data data reference @return key and value IDs

(final int pre, final Data data)

Source from the content-addressed store, hash-verified

197 * @return key and value IDs
198 */
199 Atts values(final int pre, final Data data) {
200 final int[] values = current.find(pre, data).values();
201 final int nl = values.length;
202 final Atts as = new Atts(nl / 2);
203 for(int n = 0; n < nl; n += 2) as.add(prefix(values[n]), uri(values[n + 1]));
204 return as;
205 }
206
207 /**
208 * Finds the nearest namespace node on the ancestor axis of the insert location and sets it as new

Callers

nothing calls this directly

Calls 4

addMethod · 0.95
prefixMethod · 0.95
uriMethod · 0.95
findMethod · 0.45

Tested by

no test coverage detected