com.thaiopensource.datatype.xsd
Class ScaleRestrictDatatype

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.ScaleRestrictDatatype
All Implemented Interfaces:
Datatype2, Datatype
Direct Known Subclasses:
IntegerRestrictDatatype

 class ScaleRestrictDatatype
extends ValueRestrictDatatype


Field Summary
private  int scale
           
 
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
ScaleRestrictDatatype(DatatypeBase base, int scale)
           
 
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

scale

private final int scale
Constructor Detail

ScaleRestrictDatatype

ScaleRestrictDatatype(DatatypeBase base,
                      int scale)
Method Detail

satisfiesRestriction

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