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

Method prefix

basex-core/src/main/java/org/basex/query/util/NSGlobal.java:122–125  ·  view source on GitHub ↗

Finds the prefix for the specified URI. @param uri namespace URI @return prefix, or empty string

(final byte[] uri)

Source from the content-addressed store, hash-verified

120 * @return prefix, or empty string
121 */
122 public static byte[] prefix(final byte[] uri) {
123 final byte[] prefix = PREFIXES.get(uri);
124 return prefix != null ? prefix : EMPTY;
125 }
126
127 /**
128 * Checks if the specified URI is a reserved namespace.

Callers 11

annotationsMethod · 0.95
AnnotationMethod · 0.95
FuncDefinitionMethod · 0.95
parseMethod · 0.95
annotationsMethod · 0.95
optionsMethod · 0.95
getMethod · 0.95
prefixIdMethod · 0.95
stripNamespaceMethod · 0.45
stripNamespacesMethod · 0.45
resolveMethod · 0.45

Calls 1

getMethod · 0.65

Tested by

no test coverage detected