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 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.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:
getAllowedFacets
in classTypeValidator
-
getActualValue
public Object getActualValue(String content, ValidationContext context) throws InvalidDatatypeValueException
- Specified by:
getActualValue
in classTypeValidator
- Throws:
InvalidDatatypeValueException
-
compare
public final int compare(Object value1, Object value2)
- Overrides:
compare
in classTypeValidator
-
getTotalDigits
public final int getTotalDigits(Object value)
- Overrides:
getTotalDigits
in classTypeValidator
-
getFractionDigits
public final int getFractionDigits(Object value)
- Overrides:
getFractionDigits
in classTypeValidator
-
-