com.thaiopensource.datatype.xsd
Class TokenDatatype
java.lang.Object
com.thaiopensource.datatype.xsd.DatatypeBase
com.thaiopensource.datatype.xsd.TokenDatatype
- All Implemented Interfaces:
- Datatype2, Measure, Datatype
- Direct Known Subclasses:
- AnyUriDatatype, CdataDatatype, NameDatatype, NmtokenDatatype, RegexDatatype, StringDatatype
class TokenDatatype
- extends DatatypeBase
- implements Measure
Methods inherited from class com.thaiopensource.datatype.xsd.DatatypeBase |
allowsValue, checkValid, createStreamingValidator, createValue, getIdType, getOrderRelation, getPrimitive, getWhiteSpace, isContextDependent, isValid, normalizeWhiteSpace, sameValue, valueHashCode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TokenDatatype
TokenDatatype()
TokenDatatype
TokenDatatype(int whiteSpace)
lexicallyAllows
public boolean lexicallyAllows(String str)
- Specified by:
lexicallyAllows
in class DatatypeBase
alwaysValid
public boolean alwaysValid()
- Specified by:
alwaysValid
in interface Datatype2
- Overrides:
alwaysValid
in class DatatypeBase
getValue
Object getValue(String str,
ValidationContext vc)
- Specified by:
getValue
in class DatatypeBase
getMeasure
Measure getMeasure()
- Overrides:
getMeasure
in class DatatypeBase
getLength
public int getLength(Object obj)
- Specified by:
getLength
in interface Measure