Checks if the specified token is a valid NMToken. @param value value to be checked @return result of check
(final byte[] value)
| 210 | * @return result of check |
| 211 | */ |
| 212 | public static boolean isNMToken(final byte[] value) { |
| 213 | final int vl = value.length; |
| 214 | for(int v = 0; v < vl; v += cl(value, v)) { |
| 215 | if(!isChar(cp(value, v))) return false; |
| 216 | } |
| 217 | return vl != 0; |
| 218 | } |
| 219 | |
| 220 | /** |
| 221 | * Checks if the specified token is a valid QName. |