org.apache.xerces.impl.dv.xs
Class DecimalDV

java.lang.Object
  extended by org.apache.xerces.impl.dv.xs.TypeValidator
      extended by org.apache.xerces.impl.dv.xs.DecimalDV
Direct Known Subclasses:
IntegerDV

public class DecimalDV
extends TypeValidator

Represent the schema type "decimal"

Version:
$Id: DecimalDV.java 446745 2006-09-15 21:43:58Z mrglavas $
Author:
Neeraj Bajaj, Sun Microsystems, inc., Sandy Gao, IBM

Field Summary
 
Fields inherited from class org.apache.xerces.impl.dv.xs.TypeValidator
EQUAL, GREATER_THAN, INDETERMINATE, LESS_THAN
 
Constructor Summary
DecimalDV()
           
 
Method Summary
 int compare(java.lang.Object value1, java.lang.Object value2)
           
 java.lang.Object getActualValue(java.lang.String content, ValidationContext context)
           
 short getAllowedFacets()
           
 int getFractionDigits(java.lang.Object value)
           
 int getTotalDigits(java.lang.Object value)
           
 
Methods inherited from class org.apache.xerces.impl.dv.xs.TypeValidator
checkExtraRules, getDataLength, getDigit, isDigit, isIdentical
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecimalDV

public DecimalDV()
Method Detail

getAllowedFacets

public final short getAllowedFacets()
Specified by:
getAllowedFacets in class TypeValidator

getActualValue

public java.lang.Object getActualValue(java.lang.String content,
                                       ValidationContext context)
                                throws InvalidDatatypeValueException
Specified by:
getActualValue in class TypeValidator
Throws:
InvalidDatatypeValueException

compare

public final int compare(java.lang.Object value1,
                         java.lang.Object value2)
Overrides:
compare in class TypeValidator

getTotalDigits

public final int getTotalDigits(java.lang.Object value)
Overrides:
getTotalDigits in class TypeValidator

getFractionDigits

public final int getFractionDigits(java.lang.Object value)
Overrides:
getFractionDigits in class TypeValidator