org.kuali.rice.krad.datadictionary.validation.constraint
Class PrerequisiteConstraint

java.lang.Object
  extended by org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
      extended by 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

Field Summary
protected  String propertyName
           
 
Fields inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
applyClientSide, constraintStateOverrides, messageComponentCode, messageKey, messageNamespaceCode, states, validationMessageParams
 
Constructor Summary
PrerequisiteConstraint()
           
 
Method Summary
 String getPropertyName()
           
 List<String> getValidationMessageParams()
          Parameters to be used in the string retrieved by this constraint's messageKey, ordered by number of the param
 void setPropertyName(String propertyName)
           
 
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
 

Field Detail

propertyName

protected String propertyName
Constructor Detail

PrerequisiteConstraint

public PrerequisiteConstraint()
Method Detail

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–2014 The Kuali Foundation. All rights reserved.