public class CaseConstraint extends BaseConstraint
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.
Modifier and Type | Field and Description |
---|---|
protected boolean |
caseSensitive |
protected String |
operator |
protected String |
propertyName |
protected List<WhenConstraint> |
whenConstraint |
applyClientSide, constraintStateOverrides, messageComponentCode, messageKey, messageNamespaceCode, states, validationMessageParams
componentCode, namespaceCode
Constructor and Description |
---|
CaseConstraint() |
Modifier and Type | Method and Description |
---|---|
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 |
getApplyClientSide, getConstraintStateOverrides, getMessageComponentCode, getMessageKey, getMessageNamespaceCode, getStates, getValidationMessageParams, getValidationMessageParamsArray, setApplyClientSide, setConstraintStateOverrides, setMessageComponentCode, setMessageKey, setMessageNamespaceCode, setStates, setValidationMessageParams
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
protected String propertyName
protected boolean caseSensitive
protected List<WhenConstraint> whenConstraint
public CaseConstraint()
public List<WhenConstraint> getWhenConstraint()
WhenConstraint
's defined by this case constraintpublic void setWhenConstraint(List<WhenConstraint> whenConstraint)
WhenConstraint
's defined by this case constraintwhenConstraint
- - 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 locationCopyright © 2005–2016 The Kuali Foundation. All rights reserved.