com.thaiopensource.datatype.xsd
Class PrecisionRestrictDatatype

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.PrecisionRestrictDatatype
All Implemented Interfaces:
Datatype2, Datatype

 class PrecisionRestrictDatatype
extends ValueRestrictDatatype


Field Summary
private  int precision
           
 
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
PrecisionRestrictDatatype(DatatypeBase base, int precision)
           
 
Method Summary
(package private) static int getPrecision(BigDecimal n)
           
(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

precision

private final int precision
Constructor Detail

PrecisionRestrictDatatype

PrecisionRestrictDatatype(DatatypeBase base,
                          int precision)
Method Detail

satisfiesRestriction

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

getPrecision

static int getPrecision(BigDecimal n)