Class DataTypeWithLexicalConstraintFacet

All Implemented Interfaces:
DatabindableDatatype, XSDatatype, Serializable, org.relaxng.datatype.Datatype
Direct Known Subclasses:
FractionDigitsFacet, PatternFacet, TotalDigitsFacet

abstract class DataTypeWithLexicalConstraintFacet extends DataTypeWithFacet
base class for facets which constrains lexical space of data
  • Field Details

  • Constructor Details

    • DataTypeWithLexicalConstraintFacet

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

    • checkFormat

      protected final boolean checkFormat(String literal, org.relaxng.datatype.ValidationContext context)
      Specified by:
      checkFormat in class XSDatatypeImpl
    • _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
    • checkLexicalConstraint

      protected abstract boolean checkLexicalConstraint(String literal)