Class PatternFacet

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

public final class PatternFacet extends DataTypeWithLexicalConstraintFacet
"pattern" facet validator "pattern" is a constraint facet which is applied against lexical space. See http://www.w3.org/TR/xmlschema-2/#dt-pattern for the spec
See Also:
  • Field Details

    • exps

      private transient RegExp[] exps
      actual object that performs regular expression validation. one of the item has to match. Don't serialize so that we won't have hard-coded dependency to a particular regexp lib.
    • patterns

      public final String[] patterns
      string representations of the above RegularExpressions. this representation is usually human friendly than the one generated by RegularExpression.toString method.
    • serialVersionUID

      private static final long serialVersionUID
      See Also:
  • Constructor Details

    • PatternFacet

      public PatternFacet(String nsUri, String typeName, XSDatatypeImpl baseType, TypeIncubator facets) throws org.relaxng.datatype.DatatypeException
      Throws:
      org.relaxng.datatype.DatatypeException
  • Method Details