Class ValidDataPatternConstraint

All Implemented Interfaces:
Serializable, Cloneable, Copyable, DictionaryBean, Constraint
Direct Known Subclasses:
ConfigurationBasedRegexPatternConstraint, DatePatternConstraint, FixedPointPatternConstraint, IntegerPatternConstraint

public abstract class ValidDataPatternConstraint extends ValidCharactersConstraint
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Constructor Details

    • ValidDataPatternConstraint

      public ValidDataPatternConstraint()
  • Method Details

    • setValue

      public void setValue(String value)
      Warning: This value should NOT be set on this class as the value is built dynamically from the flags set on the constraint - if this value IS set it will override any automatic generation and only use that which was set through this method for server side validation
      Overrides:
      setValue in class ValidCharactersConstraint
      Parameters:
      value - the value to set
      See Also:
    • getValue

      public String getValue()
      Description copied from class: ValidCharactersConstraint
      The Java based regex for valid characters This value should include the ^ and $ symbols if needed
      Overrides:
      getValue in class ValidCharactersConstraint
      Returns:
      the value
      See Also:
    • getRegexString

      protected abstract String getRegexString()
      This method returns a string representing a regex with characters to match, this string should not include the start(^) and end($) symbols
      Returns:
      regular expression