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

Method table

basex-core/src/main/java/org/basex/data/NSNode.java:303–316  ·  view source on GitHub ↗

Adds the namespace structure of a node to the specified table. @param table table @param start first PRE value @param end last PRE value @param ns namespace reference

(final Table table, final int start, final int end, final Namespaces ns)

Source from the content-addressed store, hash-verified

301 * @param ns namespace reference
302 */
303 void table(final Table table, final int start, final int end, final Namespaces ns) {
304 final int vl = values.length;
305 for(int i = 0; i < vl; i += 2) {
306 if(pre < start || pre > end) continue;
307 final TokenList tl = new TokenList();
308 tl.add(values[i + 1]);
309 tl.add(pre);
310 tl.add(pre - parent.pre);
311 tl.add(ns.prefix(values[i]));
312 tl.add(ns.uri(values[i + 1]));
313 table.contents.add(tl);
314 }
315 for(int i = 0; i < size; i++) nodes[i].table(table, start, end, ns);
316 }
317
318 /**
319 * Adds namespace information for the specified node to a map.

Callers 1

addMethod · 0.45

Calls 4

addMethod · 0.95
addMethod · 0.65
prefixMethod · 0.45
uriMethod · 0.45

Tested by

no test coverage detected