Class WhiteSpaceFacet

All Implemented Interfaces:
DatabindableDatatype, XSDatatype, Serializable, org.relaxng.datatype.Datatype

public class WhiteSpaceFacet extends DataTypeWithFacet
whiteSpace facet validator
See Also:
  • Field Details

  • Constructor Details

    • WhiteSpaceFacet

      WhiteSpaceFacet(String nsUri, String typeName, XSDatatypeImpl baseType, TypeIncubator facets) throws org.relaxng.datatype.DatatypeException
      Throws:
      org.relaxng.datatype.DatatypeException
    • WhiteSpaceFacet

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

    • checkFormat

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

      public Object _createValue(String content, 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)
      whiteSpace facet never constrain anything
      Specified by:
      diagnoseByFacet in class DataTypeWithFacet