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

java.lang.Object
  extended by org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
      extended by org.kuali.rice.krad.datadictionary.validation.constraint.CaseConstraint
All Implemented Interfaces:
Serializable, Constraint

public class CaseConstraint
extends BaseConstraint

A case constraint is a constraint that is imposed only when a certain condition is met, for example, if the country attribute value is "USA", then a prerequisite constraint may be imposed that the 'State' attribute is non-null. This class is a direct copy of one that was in Kuali Student.

Since:
1.1
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Field Summary
protected  boolean caseSensitive
           
protected  String operator
           
protected  String propertyName
           
protected  List<WhenConstraint> whenConstraint
           
 
Fields inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
applyClientSide, labelKey
 
Constructor Summary
CaseConstraint()
           
 
Method Summary
 String getOperator()
           
 String getPropertyName()
           
 List<WhenConstraint> getWhenConstraint()
           
 boolean isCaseSensitive()
           
 void setCaseSensitive(boolean caseSensitive)
           
 void setOperator(String operator)
           
 void setPropertyName(String propertyName)
           
 void setWhenConstraint(List<WhenConstraint> whenConstraint)
           
 
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
getApplyClientSide, getLabelKey, getValidationMessageParams, setApplyClientSide, setLabelKey, setValidationMessageParams
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

whenConstraint

protected List<WhenConstraint> whenConstraint

propertyName

protected String propertyName

operator

protected String operator

caseSensitive

protected boolean caseSensitive
Constructor Detail

CaseConstraint

public CaseConstraint()
Method Detail

getWhenConstraint

public List<WhenConstraint> getWhenConstraint()

setWhenConstraint

public void setWhenConstraint(List<WhenConstraint> whenConstraint)

getPropertyName

public String getPropertyName()

setPropertyName

public void setPropertyName(String propertyName)

getOperator

public String getOperator()

setOperator

public void setOperator(String operator)

isCaseSensitive

public boolean isCaseSensitive()

setCaseSensitive

public void setCaseSensitive(boolean caseSensitive)


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