Class PrerequisiteConstraint

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

public class PrerequisiteConstraint extends BaseConstraint
Prerequisite constraints require that some other attribute be non-empty in order for the constraint to be valid. So, a 7-digit US phone number might have a prerequisite of an area code, or an address street2 might have a prerequisite that street1 is non-empty.
Since:
1.1
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Field Details

    • propertyName

      protected String propertyName
  • Constructor Details

    • PrerequisiteConstraint

      public PrerequisiteConstraint()
  • Method Details

    • getPropertyName

      public String getPropertyName()
    • setPropertyName

      public void setPropertyName(String propertyName)
    • 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