com.thaiopensource.datatype.xsd
Class TokenDatatype

java.lang.Object
  extended by com.thaiopensource.datatype.xsd.DatatypeBase
      extended by 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


Field Summary
 
Fields inherited from class com.thaiopensource.datatype.xsd.DatatypeBase
WHITE_SPACE_COLLAPSE, WHITE_SPACE_PRESERVE, WHITE_SPACE_REPLACE
 
Fields inherited from interface org.relaxng.datatype.Datatype
ID_TYPE_ID, ID_TYPE_IDREF, ID_TYPE_IDREFS, ID_TYPE_NULL
 
Constructor Summary
TokenDatatype()
           
TokenDatatype(int whiteSpace)
           
 
Method Summary
 boolean alwaysValid()
           
 int getLength(Object obj)
           
(package private)  Measure getMeasure()
           
(package private)  Object getValue(String str, ValidationContext vc)
           
 boolean lexicallyAllows(String str)
           
 
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
 

Constructor Detail

TokenDatatype

TokenDatatype()

TokenDatatype

TokenDatatype(int whiteSpace)
Method Detail

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