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,v 1.9 2003/05/08 20:11:55 elena Exp $

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

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-2004 Apache XML Project. All Rights Reserved.