public class SimpleConstraint extends BaseConstraint implements ExistenceConstraint, RangeConstraint, LengthConstraint
Modifier and Type | Field and Description |
---|---|
protected String |
exclusiveMin |
protected String |
inclusiveMax |
applyClientSide, labelKey
Constructor and Description |
---|
SimpleConstraint() |
Modifier and Type | Method and Description |
---|---|
DataType |
getDataType() |
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) |
getApplyClientSide, getLabelKey, getValidationMessageParams, getValidationMessageParamsArray, setApplyClientSide, setLabelKey, setValidationMessageParams
protected String exclusiveMin
protected String inclusiveMax
public SimpleConstraint()
public Boolean getRequired()
public void setRequired(Boolean required)
required
- the required to setpublic Integer getMaxLength()
getMaxLength
in interface LengthConstraint
public void setMaxLength(Integer maxLength)
maxLength
- the maxLength to setpublic Integer getMinLength()
getMinLength
in interface LengthConstraint
public void setMinLength(Integer minLength)
minLength
- the minLength to setpublic String getExclusiveMin()
getExclusiveMin
in interface RangeConstraint
public void setExclusiveMin(String exclusiveMin)
exclusiveMin
- the exclusiveMin to setpublic String getInclusiveMax()
getInclusiveMax
in interface RangeConstraint
public 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 Boolean isRequired()
isRequired
in interface ExistenceConstraint
ExistenceConstraint.isRequired()
public DataType getDataType()
getDataType
in interface DataTypeConstraint
public void setDataType(DataType dataType)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.