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

Method uriId

basex-core/src/main/java/org/basex/data/Data.java:415–417  ·  view source on GitHub ↗

Returns the ID of the namespace URI of the addressed element or attribute. @param pre PRE value @param kind node kind @return ID of the namespace URI, or 0 if node has no namespace

(final int pre, final int kind)

Source from the content-addressed store, hash-verified

413 * @return ID of the namespace URI, or {@code 0} if node has no namespace
414 */
415 public final int uriId(final int pre, final int kind) {
416 return kind == ELEM || kind == ATTR ? table.read1(pre, kind == ELEM ? 3 : 11) & 0xFF : 0;
417 }
418
419 /**
420 * Returns the name and namespace URI of the addressed element or attribute.

Callers 10

insertAttributeWithNsMethod · 0.95
qnameMethod · 0.95
insertMethod · 0.95
nodeMethod · 0.95
openMethod · 0.45
addMethod · 0.45
addAttrMethod · 0.45
addElemMethod · 0.45
stripNamespaceMethod · 0.45
stripNamespacesMethod · 0.45

Calls 1

read1Method · 0.45

Tested by 1

insertAttributeWithNsMethod · 0.76