Returns the ID of the namespace URI for the specified prefix. @param prefix prefix reference @return id of the namespace URI, or 0 if none is found
(final int prefix)
| 157 | * @return id of the namespace URI, or {@code 0} if none is found |
| 158 | */ |
| 159 | int uri(final int prefix) { |
| 160 | final int[] vls = values; |
| 161 | final int vl = vls.length; |
| 162 | for(int v = 0; v < vl; v += 2) { |
| 163 | if(vls[v] == prefix) return vls[v + 1]; |
| 164 | } |
| 165 | return 0; |
| 166 | } |
| 167 | |
| 168 | // Updating Namespaces ========================================================================== |
| 169 |