|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.datadictionary.DictionaryBeanBase org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint org.kuali.rice.krad.datadictionary.validation.constraint.CaseConstraint
public class CaseConstraint
CaseConstraint 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.
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, constraintStateOverrides, messageComponentCode, messageKey, messageNamespaceCode, states, validationMessageParams |
Fields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase |
---|
componentCode, namespaceCode |
Constructor Summary | |
---|---|
CaseConstraint()
|
Method Summary | |
---|---|
void |
completeValidation(ValidationTrace tracer)
Validates different requirements of component compiling a series of reports detailing information on errors found in the component. |
String |
getOperator()
specifies the kind of relationship to be checked between the actual value and the ones defined in the getWhenConstraint() |
String |
getPropertyName()
gets the property name for the attribute to which the case constraint is applied to |
List<WhenConstraint> |
getWhenConstraint()
get the WhenConstraint 's defined by this case constraint |
boolean |
isCaseSensitive()
checks whether string comparison will be carried out in a case sensitive fashion |
void |
setCaseSensitive(boolean caseSensitive)
setter for case sensitive |
void |
setOperator(String operator)
setter for the operator |
void |
setPropertyName(String propertyName)
setter for property name |
void |
setWhenConstraint(List<WhenConstraint> whenConstraint)
sets the WhenConstraint 's defined by this case constraint |
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint |
---|
getApplyClientSide, getConstraintStateOverrides, getMessageComponentCode, getMessageKey, getMessageNamespaceCode, getStates, getValidationMessageParams, getValidationMessageParamsArray, setApplyClientSide, setConstraintStateOverrides, setMessageComponentCode, setMessageKey, setMessageNamespaceCode, setStates, setValidationMessageParams |
Methods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase |
---|
clone, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String propertyName
protected String operator
protected boolean caseSensitive
protected List<WhenConstraint> whenConstraint
Constructor Detail |
---|
public CaseConstraint()
Method Detail |
---|
public List<WhenConstraint> getWhenConstraint()
WhenConstraint
's defined by this case constraint
public void setWhenConstraint(List<WhenConstraint> whenConstraint)
WhenConstraint
's defined by this case constraint
whenConstraint
- - the list of constraintspublic String getPropertyName()
public void setPropertyName(String propertyName)
propertyName
- a valid property namepublic String getOperator()
getWhenConstraint()
UifConstants.CaseConstraintOperators
public void setOperator(String operator)
operator
- UifConstants.CaseConstraintOperators
public boolean isCaseSensitive()
public void setCaseSensitive(boolean caseSensitive)
caseSensitive
- - the case sensitive value to setpublic void completeValidation(ValidationTrace tracer)
completeValidation
in class BaseConstraint
tracer
- Record of component's location
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |