Class TypeValidator

java.lang.Object
org.apache.jena.ext.xerces.impl.dv.xs.TypeValidator
Direct Known Subclasses:
AbstractDateTimeDV, AnySimpleDV, AnyURIDV, Base64BinaryDV, BooleanDV, DecimalDV, DoubleDV, FloatDV, HexBinaryDV, StringDV

public abstract class TypeValidator extends 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. @xerces.internal
Version:
$Id: TypeValidator.java 446745 2006-09-15 21:43:58Z mrglavas $
Author:
Neeraj Bajaj, Sun Microsystems, inc., Sandy Gao, IBM
  • Field Details

  • Constructor Details

    • TypeValidator

      public TypeValidator()
  • Method Details

    • getAllowedFacets

      public abstract short getAllowedFacets()
    • getActualValue

      public abstract Object getActualValue(String content) throws InvalidDatatypeValueException
      Throws:
      InvalidDatatypeValueException
    • compare

      public int compare(Object value1, Object value2)
    • getTotalDigits

      public int getTotalDigits(Object value)
    • getFractionDigits

      public int getFractionDigits(Object value)
    • isDigit

      public static final boolean isDigit(char ch)
    • getDigit

      public static final int getDigit(char ch)