|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.sovt.impl.AbstractValidator
org.sovt.impl.LengthValidator
This validator checks length of the string value. "toString()" method is invoked on the object first. "null" objects are skipped.
| Constructor Summary | |
LengthValidator()
Creates instance of LengthValidator. |
|
| Method Summary | |
java.lang.Object |
clone()
Just returns super.clone(). |
int |
getMax()
Returns maximum length of value. |
int |
getMin()
Returns minimum length of value. |
void |
setMax(int pMax)
Sets maximum length of value. |
void |
setMin(int pMin)
Sets minimumlength of value. |
void |
validate(java.lang.Object object,
ValidationResult result)
Validates if object string value is in specified range. |
| Methods inherited from class org.sovt.impl.AbstractValidator |
getMessage, setMessage, setMsg |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LengthValidator()
| Method Detail |
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface Validatorclone in class AbstractValidatorjava.lang.CloneNotSupportedExceptionpublic int getMax()
public int getMin()
public void setMax(int pMax)
pMax - maximum length of value.public void setMin(int pMin)
pMin - minimum length of value.
public void validate(java.lang.Object object,
ValidationResult result)
validate in interface Validatorobject - Object to validateresult - Container for validation results.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||