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

Method table

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

Returns a tabular representation of the namespace entries. @param start first PRE value @param end last PRE value @return namespaces

(final int start, final int end)

Source from the content-addressed store, hash-verified

392 * @return namespaces
393 */
394 byte[] table(final int start, final int end) {
395 if(root.children() == 0) return Token.EMPTY;
396
397 final Table t = new Table();
398 t.header.add(TABLENS);
399 t.header.add(TABLEPRE);
400 t.header.add(TABLEDIST);
401 t.header.add(TABLEPREF);
402 t.header.add(TABLEURI);
403 for(int i = 0; i < 3; ++i) t.align.add(true);
404 root.table(t, start, end, this);
405 return t.contents.isEmpty() ? Token.EMPTY : t.finish();
406 }
407
408 /**
409 * Returns namespace information.

Callers

nothing calls this directly

Calls 4

finishMethod · 0.95
addMethod · 0.65
childrenMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected