Class RangeFacet

All Implemented Interfaces:
DatabindableDatatype, XSDatatype, Serializable, org.relaxng.datatype.Datatype
Direct Known Subclasses:
MaxExclusiveFacet, MaxInclusiveFacet, MinExclusiveFacet, MinInclusiveFacet

public abstract class RangeFacet extends DataTypeWithFacet
Base class of "(max|min)(In|Ex)clusive" facet validator
Author:
Kohsuke KAWAGUCHI
See Also:
  • Field Details

    • limitValue

      public final Object limitValue
  • Constructor Details

    • RangeFacet

      protected RangeFacet(String nsUri, String typeName, XSDatatypeImpl baseType, String facetName, Object limit, boolean _isFixed) throws org.relaxng.datatype.DatatypeException
      Throws:
      org.relaxng.datatype.DatatypeException
  • Method Details

    • _createValue

      public final Object _createValue(String literal, org.relaxng.datatype.ValidationContext context)
      Description copied from class: XSDatatypeImpl
      converts a whitespace-processed lexical value into the corresponding value object
      Specified by:
      _createValue in class XSDatatypeImpl
    • diagnoseByFacet

      protected void diagnoseByFacet(String content, org.relaxng.datatype.ValidationContext context) throws org.relaxng.datatype.DatatypeException
      Specified by:
      diagnoseByFacet in class DataTypeWithFacet
      Throws:
      org.relaxng.datatype.DatatypeException
    • rangeCheck

      protected abstract boolean rangeCheck(int compareResult)
    • needValueCheck

      protected final boolean needValueCheck()
      Overrides:
      needValueCheck in class DataTypeWithFacet
    • checkFormat

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