Class NumericPatternConstraint

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

public class NumericPatternConstraint extends AllowCharacterConstraint
Pattern for matching numeric characters, difference between NumericPatternConstraint and IntegerPatternConstraint is that a numeric pattern constraint is for matching numeric characters and can be mixed with other characters by setting allow flags on, while integer is for only positive/negative numbers
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Constructor Details

    • NumericPatternConstraint

      public NumericPatternConstraint()
  • Method Details

    • 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: