FileDocCategorySizeDatePackage
DecimalDV.javaAPI DocJava SE 5 API12268Fri Aug 26 14:55:48 BST 2005com.sun.org.apache.xerces.internal.impl.dv.xs

DecimalDV

public class DecimalDV extends TypeValidator
Represent the schema type "decimal"
author
Neeraj Bajaj, Sun Microsystems, inc.
author
Sandy Gao, IBM
version
$Id: DecimalDV.java,v 1.9 2003/05/08 20:11:55 elena Exp $

Fields Summary
Constructors Summary
Methods Summary
public final intcompare(java.lang.Object value1, java.lang.Object value2)

        return ((XDecimal)value1).compareTo((XDecimal)value2);
    
public java.lang.ObjectgetActualValue(java.lang.String content, com.sun.org.apache.xerces.internal.impl.dv.ValidationContext context)

        try {
            return new XDecimal(content);
        } catch (NumberFormatException nfe) {
            throw new InvalidDatatypeValueException("cvc-datatype-valid.1.2.1", new Object[]{content, "decimal"});
        }
    
public final shortgetAllowedFacets()

        return ( XSSimpleTypeDecl.FACET_PATTERN | XSSimpleTypeDecl.FACET_WHITESPACE | XSSimpleTypeDecl.FACET_ENUMERATION |XSSimpleTypeDecl.FACET_MAXINCLUSIVE |XSSimpleTypeDecl.FACET_MININCLUSIVE | XSSimpleTypeDecl.FACET_MAXEXCLUSIVE  | XSSimpleTypeDecl.FACET_MINEXCLUSIVE | XSSimpleTypeDecl.FACET_TOTALDIGITS | XSSimpleTypeDecl.FACET_FRACTIONDIGITS);
    
public final intgetFractionDigits(java.lang.Object value)

        return ((XDecimal)value).fracDigits;
    
public final intgetTotalDigits(java.lang.Object value)

        return ((XDecimal)value).totalDigits;