MCPcopy Create free account
hub / github.com/dumbledore/AlbiteREADER / getNamespaceUri

Method getNamespaceUri

src/org/kxml2/kdom/Element.java:145–153  ·  view source on GitHub ↗

returns the namespace for the given prefix

(String prefix)

Source from the content-addressed store, hash-verified

143 * returns the namespace for the given prefix */
144
145 public String getNamespaceUri (String prefix) {
146 int cnt = getNamespaceCount ();
147 for (int i = 0; i < cnt; i++) {
148 if (prefix == getNamespacePrefix (i) ||
149 (prefix != null && prefix.equals (getNamespacePrefix (i))))
150 return getNamespaceUri (i);
151 }
152 return parent instanceof Element ? ((Element) parent).getNamespaceUri (prefix) : null;
153 }
154
155
156 /**

Callers 2

writeMethod · 0.95
parseMethod · 0.45

Calls 3

getNamespaceCountMethod · 0.95
getNamespacePrefixMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected