org.apache.xerces.impl.dv.xs
Class TypeValidator
java.lang.Object
org.apache.xerces.impl.dv.xs.TypeValidator
- Direct Known Subclasses:
- AbstractDateTimeDV, AnySimpleDV, AnyURIDV, Base64BinaryDV, BooleanDV, DecimalDV, DoubleDV, EntityDV, FloatDV, HexBinaryDV, IDDV, IDREFDV, ListDV, QNameDV, StringDV, UnionDV
public abstract class TypeValidator
- extends java.lang.Object
All primitive types plus ID/IDREF/ENTITY/INTEGER are derived from this abstract
class. It provides extra information XSSimpleTypeDecl requires from each
type: allowed facets, converting String to actual value, check equality,
comparison, etc.
- Version:
- $Id: TypeValidator.java 446745 2006-09-15 21:43:58Z mrglavas $
- Author:
- Neeraj Bajaj, Sun Microsystems, inc., Sandy Gao, IBM
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LESS_THAN
public static final short LESS_THAN
- See Also:
- Constant Field Values
EQUAL
public static final short EQUAL
- See Also:
- Constant Field Values
GREATER_THAN
public static final short GREATER_THAN
- See Also:
- Constant Field Values
INDETERMINATE
public static final short INDETERMINATE
- See Also:
- Constant Field Values
TypeValidator
public TypeValidator()
getAllowedFacets
public abstract short getAllowedFacets()
getActualValue
public abstract java.lang.Object getActualValue(java.lang.String content,
ValidationContext context)
throws InvalidDatatypeValueException
- Throws:
InvalidDatatypeValueException
checkExtraRules
public void checkExtraRules(java.lang.Object value,
ValidationContext context)
throws InvalidDatatypeValueException
- Throws:
InvalidDatatypeValueException
isIdentical
public boolean isIdentical(java.lang.Object value1,
java.lang.Object value2)
compare
public int compare(java.lang.Object value1,
java.lang.Object value2)
getDataLength
public int getDataLength(java.lang.Object value)
getTotalDigits
public int getTotalDigits(java.lang.Object value)
getFractionDigits
public int getFractionDigits(java.lang.Object value)
isDigit
public static final boolean isDigit(char ch)
getDigit
public static final int getDigit(char ch)