Class FloatingNumberType

All Implemented Interfaces:
DatabindableDatatype, Comparator, XSDatatype, Serializable, org.relaxng.datatype.Datatype
Direct Known Subclasses:
DoubleType, FloatType

abstract class FloatingNumberType extends BuiltinAtomicType implements Comparator
base class of FloatType and DoubleType
  • Field Details

  • Constructor Details

    • FloatingNumberType

      protected FloatingNumberType(String typeName)
  • Method Details

    • checkFormat

      protected final boolean checkFormat(String lexicalValue, org.relaxng.datatype.ValidationContext context)
      Specified by:
      checkFormat in class XSDatatypeImpl
    • isDigitOrPeriodOrSign

      protected static boolean isDigitOrPeriodOrSign(char ch)
    • compare

      public final int compare(Object lhs, Object rhs)
      Description copied from interface: Comparator
      compare to value types and decides its order relation
      Specified by:
      compare in interface Comparator
    • isFacetApplicable

      public final int isFacetApplicable(String facetName)
      Description copied from interface: XSDatatype
      returns if the specified facet is applicable to this datatype.
      Specified by:
      isFacetApplicable in interface XSDatatype
      Returns:
      APPLICABLE
      if the facet is applicable
      FIXED
      if the facet is already fixed (that is,not applicable)
      NOT_ALLOWED
      if the facet is not applicable to this datatype at all. this value is also returned for unknown facets.