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, labelKey
 
Constructor Summary
PrerequisiteConstraint()
           
 
Method Summary
 String getLabelKey()
          LabelKey should be a single word key.
 String getPropertyName()
           
 List<String> getValidationMessageParams()
          Parameters to be used in the string retrieved by this constraint's labelKey, ordered by number of the param
 void setPropertyName(String propertyName)
           
 
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
getApplyClientSide, getValidationMessageParamsArray, setApplyClientSide, setLabelKey, 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)

getLabelKey

public String getLabelKey()
Description copied from class: BaseConstraint
LabelKey should be a single word key. This key is used to find a message to use for this constraint from available messages. The key is also used for defining/retrieving validation method names when applicable for ValidCharactersContraints. If a comma separated list of keys is used, a message will be generated that is a comma separated list of the messages retrieved for each key.

Overrides:
getLabelKey in class BaseConstraint
Returns:
See Also:
ValidCharactersConstraint

getValidationMessageParams

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

Overrides:
getValidationMessageParams in class BaseConstraint
Returns:
the validationMessageParams


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.