org.apache.xerces.impl.dv.xs

Class DecimalDV

Known Direct Subclasses:
IntegerDV

public class DecimalDV
extends TypeValidator

Represent the schema type "decimal"
Version:
$Id: DecimalDV.java 320196 2005-01-05 21:13:49Z mrglavas $
Authors:
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

Method Summary

int
compare(Object value1, Object value2)
Object
getActualValue(String content, ValidationContext context)
short
getAllowedFacets()
int
getFractionDigits(Object value)
int
getTotalDigits(Object value)

Methods inherited from class org.apache.xerces.impl.dv.xs.TypeValidator

checkExtraRules, compare, getActualValue, getAllowedFacets, getDataLength, getDigit, getFractionDigits, getTotalDigits, isDigit, isIdentical

Method Details

compare

public final int compare(Object value1,
                         Object value2)
Overrides:
compare in interface TypeValidator

getActualValue

public Object getActualValue(String content,
                             ValidationContext context)
            throws InvalidDatatypeValueException
Overrides:
getActualValue in interface TypeValidator

getAllowedFacets

public final short getAllowedFacets()
Overrides:
getAllowedFacets in interface TypeValidator

getFractionDigits

public final int getFractionDigits(Object value)
Overrides:
getFractionDigits in interface TypeValidator

getTotalDigits

public final int getTotalDigits(Object value)
Overrides:
getTotalDigits in interface TypeValidator

Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.