FileDocCategorySizeDatePackage
PrecisionDecimalDV.javaAPI DocJava SE 6 API14060Tue Jun 10 00:22:42 BST 2008com.sun.org.apache.xerces.internal.impl.dv.xs

PrecisionDecimalDV

public class PrecisionDecimalDV extends TypeValidator
Validator for datatype (W3C Schema 1.1)
xerces.experimental
author
Ankit Pasricha, IBM
version
$Id: PrecisionDecimalDV.java,v 1.2.6.1 2005/09/06 11:43:07 neerajbj Exp $

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

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

        try {
            return new XPrecisionDecimal(content);
        } catch (NumberFormatException nfe) {
            throw new InvalidDatatypeValueException("cvc-datatype-valid.1.2.1", new Object[]{content, "precisionDecimal"});
        }
    
public 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 intgetFractionDigits(java.lang.Object value)

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

        return ((XPrecisionDecimal)value).totalDigits;
    
public booleanisIdentical(java.lang.Object value1, java.lang.Object value2)

        if(!(value2 instanceof XPrecisionDecimal) || !(value1 instanceof XPrecisionDecimal))
            return false;
        return ((XPrecisionDecimal)value1).isIdentical((XPrecisionDecimal)value2);