Class SimpleConstraint
java.lang.Object
org.kuali.rice.krad.datadictionary.DictionaryBeanBase
org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
org.kuali.rice.krad.datadictionary.validation.constraint.SimpleConstraint
- All Implemented Interfaces:
Serializable,Cloneable,Copyable,DictionaryBean,Constraint,DataTypeConstraint,ExistenceConstraint,LengthConstraint,RangeConstraint
public class SimpleConstraint
extends BaseConstraint
implements ExistenceConstraint, RangeConstraint, LengthConstraint
A simple constraint stores 'basic' constraints for a field. This constraint is meant to be used as a
constraint for WhenConstraints in CaseConstraint, and is also used internally in InputField.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
Fields inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
applyClientSide, constraintStateOverrides, messageComponentCode, messageKey, messageNamespaceCode, states, validationMessageParamsFields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
componentCode, namespaceCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongets the type of an attribute definitionExclusive minimum value for this fieldInclusive max value for this fieldThe maximum amount of characters this field's value can beThe maximum amount of items in this field's list of values - not yet used/do not useThe minimum amount of characters this field's value has to beThe minimum amount of items in this fields list of values - not yet used/do not useIf true the field is requiredvoidsetDataType(DataType dataType) voidsetExclusiveMin(String exclusiveMin) voidsetInclusiveMax(String inclusiveMax) voidsetMaxLength(Integer maxLength) voidsetMaxOccurs(Integer maxOccurs) voidsetMinLength(Integer minLength) voidsetMinOccurs(Integer minOccurs) voidsetRequired(Boolean required) Methods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
completeValidation, getApplyClientSide, getConstraintStateOverrides, getMessageComponentCode, getMessageKey, getMessageNamespaceCode, getStates, getValidationMessageParams, getValidationMessageParamsArray, setApplyClientSide, setConstraintStateOverrides, setMessageComponentCode, setMessageKey, setMessageNamespaceCode, setStates, setValidationMessageParamsMethods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
-
Constructor Details
-
SimpleConstraint
public SimpleConstraint()
-
-
Method Details
-
getRequired
If true the field is required- Returns:
- the required
-
setRequired
- Parameters:
required- the required to set
-
isRequired
- Specified by:
isRequiredin interfaceExistenceConstraint- See Also:
-
getMaxLength
The maximum amount of characters this field's value can be- Specified by:
getMaxLengthin interfaceLengthConstraint- Returns:
- the maxLength
-
setMaxLength
- Parameters:
maxLength- the maxLength to set
-
getMinLength
The minimum amount of characters this field's value has to be- Specified by:
getMinLengthin interfaceLengthConstraint- Returns:
- the minLength
-
setMinLength
- Parameters:
minLength- the minLength to set
-
getExclusiveMin
Exclusive minimum value for this field- Specified by:
getExclusiveMinin interfaceRangeConstraint- Returns:
- the exclusiveMin
-
setExclusiveMin
- Parameters:
exclusiveMin- the exclusiveMin to set
-
getInclusiveMax
Inclusive max value for this field- Specified by:
getInclusiveMaxin interfaceRangeConstraint- Returns:
- the inclusiveMax
-
setInclusiveMax
- Parameters:
inclusiveMax- the inclusiveMax to set
-
getMinOccurs
The minimum amount of items in this fields list of values - not yet used/do not use- Returns:
- the minOccurs
-
setMinOccurs
- Parameters:
minOccurs- the minOccurs to set
-
getMaxOccurs
The maximum amount of items in this field's list of values - not yet used/do not use- Returns:
- the maxOccurs
-
setMaxOccurs
- Parameters:
maxOccurs- the maxOccurs to set
-
getDataType
Description copied from interface:DataTypeConstraintgets the type of an attribute definition- Specified by:
getDataTypein interfaceDataTypeConstraint- Returns:
- the data type
-
setDataType
-