|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.krad.datadictionary.DictionaryBeanBase
org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
org.kuali.rice.krad.datadictionary.validation.constraint.SimpleConstraint
public class SimpleConstraint
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.
| Field Summary |
|---|
| 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 | |
|---|---|
SimpleConstraint()
|
|
| Method Summary | |
|---|---|
DataType |
getDataType()
gets the type of an attribute definition |
String |
getExclusiveMin()
Exclusive minimum value for this field |
String |
getInclusiveMax()
Inclusive max value for this field |
Integer |
getMaxLength()
The maximum amount of characters this field's value can be |
Integer |
getMaxOccurs()
The maximum amount of items in this field's list of values - not yet used/do not use |
Integer |
getMinLength()
The minimum amount of characters this field's value has to be |
Integer |
getMinOccurs()
The minimum amount of items in this fields list of values - not yet used/do not use |
Boolean |
getRequired()
If true the field is required |
Boolean |
isRequired()
|
void |
setDataType(DataType dataType)
|
void |
setExclusiveMin(String exclusiveMin)
|
void |
setInclusiveMax(String inclusiveMax)
|
void |
setMaxLength(Integer maxLength)
|
void |
setMaxOccurs(Integer maxOccurs)
|
void |
setMinLength(Integer minLength)
|
void |
setMinOccurs(Integer minOccurs)
|
void |
setRequired(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, setValidationMessageParams |
| Methods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase |
|---|
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, preventModification, setComponentCode, setNamespaceCode, unwrap |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleConstraint()
| Method Detail |
|---|
public Boolean getRequired()
public void setRequired(Boolean required)
required - the required to setpublic Boolean isRequired()
isRequired in interface ExistenceConstraintExistenceConstraint.isRequired()public Integer getMaxLength()
getMaxLength in interface LengthConstraintpublic void setMaxLength(Integer maxLength)
maxLength - the maxLength to setpublic Integer getMinLength()
getMinLength in interface LengthConstraintpublic void setMinLength(Integer minLength)
minLength - the minLength to setpublic String getExclusiveMin()
getExclusiveMin in interface RangeConstraintpublic void setExclusiveMin(String exclusiveMin)
exclusiveMin - the exclusiveMin to setpublic String getInclusiveMax()
getInclusiveMax in interface RangeConstraintpublic void setInclusiveMax(String inclusiveMax)
inclusiveMax - the inclusiveMax to setpublic Integer getMinOccurs()
public void setMinOccurs(Integer minOccurs)
minOccurs - the minOccurs to setpublic Integer getMaxOccurs()
public void setMaxOccurs(Integer maxOccurs)
maxOccurs - the maxOccurs to setpublic DataType getDataType()
DataTypeConstraint
getDataType in interface DataTypeConstraintpublic void setDataType(DataType dataType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||