org.kuali.rice.krad.datadictionary.validation.constraint
Class PrerequisiteConstraint
java.lang.Object
org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
org.kuali.rice.krad.datadictionary.validation.constraint.PrerequisiteConstraint
- All Implemented Interfaces:
- Serializable, 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:
- Serialized Form
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint |
completeValidation, getApplyClientSide, getConstraintStateOverrides, getMessageComponentCode, getMessageKey, getMessageNamespaceCode, getStates, getValidationMessageParamsArray, setApplyClientSide, setConstraintStateOverrides, setMessageComponentCode, setMessageKey, setMessageNamespaceCode, setStates, setValidationMessageParams |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
propertyName
protected String propertyName
PrerequisiteConstraint
public PrerequisiteConstraint()
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
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.