java.lang.Object
org.apache.jena.ext.xerces.impl.dv.xs.TypeValidator
- Direct Known Subclasses:
AbstractDateTimeDV
,AnySimpleDV
,AnyURIDV
,Base64BinaryDV
,BooleanDV
,DecimalDV
,DoubleDV
,EntityDV
,FloatDV
,HexBinaryDV
,IDDV
,IDREFDV
,ListDV
,QNameDV
,StringDV
,UnionDV
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.
@xerces.internal
- Version:
- $Id: TypeValidator.java 446745 2006-09-15 21:43:58Z mrglavas $
- Author:
- Neeraj Bajaj, Sun Microsystems, inc., Sandy Gao, IBM
-
Field Summary
Modifier and TypeFieldDescriptionstatic final short
static final short
static final short
static final short
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkExtraRules
(Object value, ValidationContext context) int
abstract Object
getActualValue
(String content, ValidationContext context) abstract short
int
getDataLength
(Object value) static final int
getDigit
(char ch) int
getFractionDigits
(Object value) int
getTotalDigits
(Object value) static final boolean
isDigit
(char ch) boolean
isIdentical
(Object value1, Object value2)
-
Field Details
-
LESS_THAN
public static final short LESS_THAN- See Also:
-
EQUAL
public static final short EQUAL- See Also:
-
GREATER_THAN
public static final short GREATER_THAN- See Also:
-
INDETERMINATE
public static final short INDETERMINATE- See Also:
-
-
Constructor Details
-
TypeValidator
public TypeValidator()
-
-
Method Details
-
getAllowedFacets
public abstract short getAllowedFacets() -
getActualValue
public abstract Object getActualValue(String content, ValidationContext context) throws InvalidDatatypeValueException - Throws:
InvalidDatatypeValueException
-
checkExtraRules
public void checkExtraRules(Object value, ValidationContext context) throws InvalidDatatypeValueException - Throws:
InvalidDatatypeValueException
-
isIdentical
-
compare
-
getDataLength
-
getTotalDigits
-
getFractionDigits
-
isDigit
public static final boolean isDigit(char ch) -
getDigit
public static final int getDigit(char ch)
-