com.thaiopensource.datatype.xsd
Class LengthRestrictDatatype

java.lang.Object
  extended by com.thaiopensource.datatype.xsd.DatatypeBase
      extended by com.thaiopensource.datatype.xsd.RestrictDatatype
          extended by com.thaiopensource.datatype.xsd.ValueRestrictDatatype
              extended by com.thaiopensource.datatype.xsd.LengthRestrictDatatype
All Implemented Interfaces:
Datatype2, Datatype

 class LengthRestrictDatatype
extends ValueRestrictDatatype


Field Summary
private  int length
           
private  Measure measure
           
 
Fields inherited from class com.thaiopensource.datatype.xsd.RestrictDatatype
base
 
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
LengthRestrictDatatype(DatatypeBase base, int length)
           
 
Method Summary
(package private)  boolean satisfiesRestriction(Object obj)
           
 
Methods inherited from class com.thaiopensource.datatype.xsd.ValueRestrictDatatype
allowsValue, getValue
 
Methods inherited from class com.thaiopensource.datatype.xsd.RestrictDatatype
getIdType, getMeasure, getOrderRelation, getPrimitive, lexicallyAllows, sameValue, valueHashCode
 
Methods inherited from class com.thaiopensource.datatype.xsd.DatatypeBase
alwaysValid, checkValid, createStreamingValidator, createValue, getWhiteSpace, isContextDependent, isValid, normalizeWhiteSpace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

length

private final int length

measure

private final Measure measure
Constructor Detail

LengthRestrictDatatype

LengthRestrictDatatype(DatatypeBase base,
                       int length)
Method Detail

satisfiesRestriction

boolean satisfiesRestriction(Object obj)
Specified by:
satisfiesRestriction in class ValueRestrictDatatype