1
package com.thaiopensource.datatype.xsd;
3
import com.thaiopensource.xml.util.Naming;
5
class NmtokenDatatype extends TokenDatatype {
6
public boolean lexicallyAllows(String str) {
7
return Naming.isNmtoken(str);
9
public int getLength(Object obj) {
10
// Surrogates are not possible in an NMTOKEN.
11
return ((String)obj).length();
13
public boolean alwaysValid() {
17
String getLexicalSpaceKey() {