Class UTF8AnyCharacterPatternConstraint

All Implemented Interfaces:
Serializable, Cloneable, Copyable, DictionaryBean, Constraint

public class UTF8AnyCharacterPatternConstraint extends ValidCharactersPatternConstraint
Pattern for matching any printable character
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Field Details

    • allowWhitespace

      protected boolean allowWhitespace
    • omitNewline

      protected boolean omitNewline
  • Constructor Details

    • UTF8AnyCharacterPatternConstraint

      public UTF8AnyCharacterPatternConstraint()
  • Method Details

    • getAllowWhitespace

      public boolean getAllowWhitespace()
      Returns:
      allowWhitespace
    • setAllowWhitespace

      public void setAllowWhitespace(boolean allowWhitespace)
      Parameters:
      allowWhitespace -
    • getRegexString

      protected String getRegexString()
      This method returns a string representing a regex with characters to match, this string should not include the start(^) and end($) symbols or any length related symbols (*, {0,}, etc)
      Specified by:
      getRegexString in class ValidCharactersPatternConstraint
      Returns:
      regular expression
    • getMessageKey

      public String getMessageKey()
      Description copied from class: BaseConstraint
      A key that is used to retrieve the constraint message text (used with the namespace and component code if specified)
      Overrides:
      getMessageKey in class BaseConstraint
      Returns:
      String message key
      See Also:
    • isOmitNewline

      public boolean isOmitNewline()
    • setOmitNewline

      public void setOmitNewline(boolean omitNewline)
      When set to true, omit new line characters from the set of valid characters. This flag will only have an effect if the allowWhitespace flag is true, otherwise all whitespace including new lines characters are omitted.
      Parameters:
      omitNewline -