Class IntegerPatternConstraint

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

public class IntegerPatternConstraint extends ValidDataPatternConstraint
TODO Administrator don't forget to fill this in.
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Field Details

    • allowNegative

      protected boolean allowNegative
    • onlyNegative

      protected boolean onlyNegative
    • omitZero

      protected boolean omitZero
  • Constructor Details

    • IntegerPatternConstraint

      public IntegerPatternConstraint()
  • Method Details

    • getRegexString

      protected String getRegexString()
      Description copied from class: ValidDataPatternConstraint
      This method returns a string representing a regex with characters to match, this string should not include the start(^) and end($) symbols
      Specified by:
      getRegexString in class ValidDataPatternConstraint
      Returns:
      regular expression
      See Also:
    • isAllowNegative

      public boolean isAllowNegative()
      Returns:
      the allowNegative
    • setAllowNegative

      public void setAllowNegative(boolean allowNegative)
      Parameters:
      allowNegative - the allowNegative to set
    • isOnlyNegative

      public boolean isOnlyNegative()
    • setOnlyNegative

      public void setOnlyNegative(boolean onlyNegative)
      When set to true, only allows negative numbers (and zero if allowZero is still true)
      Parameters:
      onlyNegative -
    • isOmitZero

      public boolean isOmitZero()
    • setOmitZero

      public void setOmitZero(boolean omitZero)
      When set to true, zero is not allowed in the set of allowed numbers.
      Parameters:
      omitZero -
    • getValidationMessageParams

      public List<String> getValidationMessageParams()
      Description copied from class: BaseConstraint
      Parameters to be used in the string retrieved by this constraint's messageKey, ordered by number of the param
      Overrides:
      getValidationMessageParams in class BaseConstraint
      Returns:
      the validationMessageParams