org.kuali.rice.kns.datadictionary.validation.constraint
Class WhenConstraint

java.lang.Object
  extended by org.kuali.rice.kns.datadictionary.validation.constraint.WhenConstraint
All Implemented Interfaces:
Serializable, Constraint

public class WhenConstraint
extends Object
implements Constraint

A when constraint is a child of a case constraint. It provides a specific additional constraint that should be processed when the condition itself is true. So a case constraint on country, might have a when constraint with value='USA', and another with value='Canada'. Each of these when constraints would define a constraint of their own that would only be processed when the country was USA, or when the country was Canada.

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

Field Summary
protected  Constraint constraint
           
protected  String valuePath
           
protected  List<Object> values
           
 
Constructor Summary
WhenConstraint()
           
 
Method Summary
 Constraint getConstraint()
           
 String getValuePath()
           
 List<Object> getValues()
           
 void setConstraint(Constraint constraint)
           
 void setValue(Object value)
           
 void setValuePath(String valuePath)
           
 void setValues(List<Object> values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

values

protected List<Object> values

valuePath

protected String valuePath

constraint

protected Constraint constraint
Constructor Detail

WhenConstraint

public WhenConstraint()
Method Detail

getValues

public List<Object> getValues()

setValues

public void setValues(List<Object> values)

setValue

public void setValue(Object value)

getValuePath

public String getValuePath()

setValuePath

public void setValuePath(String valuePath)

getConstraint

public Constraint getConstraint()

setConstraint

public void setConstraint(Constraint constraint)


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