Class DecimalDV
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.dv.xs.TypeValidator
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.dv.xs.DecimalDV
-
- Direct Known Subclasses:
IntegerDV
public class DecimalDV extends TypeValidator
Represent the schema type "decimal"- Version:
- $Id$
- Author:
- Neeraj Bajaj, Sun Microsystems, inc., Sandy Gao, IBM
-
-
Field Summary
-
Fields inherited from class org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.dv.xs.TypeValidator
EQUAL, GREATER_THAN, INDETERMINATE, LESS_THAN
-
-
Constructor Summary
Constructors Constructor Description DecimalDV()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Object value1, Object value2)ObjectgetActualValue(String content, ValidationContext context)shortgetAllowedFacets()intgetFractionDigits(Object value)intgetTotalDigits(Object value)-
Methods inherited from class org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.dv.xs.TypeValidator
checkExtraRules, getDataLength, getDigit, isDigit, isIdentical
-
-
-
-
Method Detail
-
getAllowedFacets
public final short getAllowedFacets()
- Specified by:
getAllowedFacetsin classTypeValidator
-
getActualValue
public Object getActualValue(String content, ValidationContext context) throws InvalidDatatypeValueException
- Specified by:
getActualValuein classTypeValidator- Throws:
InvalidDatatypeValueException
-
compare
public final int compare(Object value1, Object value2)
- Overrides:
comparein classTypeValidator
-
getTotalDigits
public final int getTotalDigits(Object value)
- Overrides:
getTotalDigitsin classTypeValidator
-
getFractionDigits
public final int getFractionDigits(Object value)
- Overrides:
getFractionDigitsin classTypeValidator
-
-