|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectijgen.generator.model.FieldConstraints
public class FieldConstraints
Constructor Summary | |
---|---|
FieldConstraints()
|
Method Summary | |
---|---|
int |
getMaxLength()
Sets the maximum length of the fields. |
int |
getMinLength()
Gets the minimum length of the fields. |
java.lang.String |
getRegExpRule()
Gets the regular expression validation rule for the field. |
boolean |
isRequired()
Gets whether the field is required. |
void |
setMaxLength(int maxLength)
Sets the maximum length of the fields. |
void |
setMinLength(int minLength)
Sets the minimum length of the fields. |
void |
setRegExpRule(java.lang.String regExpRule)
Sets the regular expression validation rule for the field. |
void |
setRequired(boolean required)
Sets whether the field is required. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldConstraints()
Method Detail |
---|
public boolean isRequired()
public void setRequired(boolean required)
required
- required statuspublic int getMinLength()
public void setMinLength(int minLength)
minLength
- minimum lengthpublic int getMaxLength()
public void setMaxLength(int maxLength)
maxLength
- maximum lengthpublic java.lang.String getRegExpRule()
public void setRegExpRule(java.lang.String regExpRule)
regExpRule
- regular expression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |