DecimalDVpublic class DecimalDV extends TypeValidator Represent the schema type "decimal" |
Methods Summary |
---|
public final int | compare(java.lang.Object value1, java.lang.Object value2)
return ((XDecimal)value1).compareTo((XDecimal)value2);
| public java.lang.Object | getActualValue(java.lang.String content, org.apache.xerces.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 short | getAllowedFacets()
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 int | getFractionDigits(java.lang.Object value)
return ((XDecimal)value).fracDigits;
| public final int | getTotalDigits(java.lang.Object value)
return ((XDecimal)value).totalDigits;
|
|