|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.townleyenterprises.validator.IntRangeValidator
This validator takes a minimum and maximum integer value to be used for validation purposes.
| Constructor Summary | |
IntRangeValidator()
|
|
| Method Summary | |
void |
setMax(int val,
boolean inclusive)
This method sets the maximum integer value for the range. |
void |
setMin(int val,
boolean inclusive)
This method sets the minimum integer value for the range. |
void |
validate(java.lang.Object value)
This method validates the given value based on the implementation-defined validation rules. |
void |
validate(java.lang.Object value,
java.util.Locale locale)
This method validates the given value based on the implementation-defined validation rules and the specified locale. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public IntRangeValidator()
| Method Detail |
public void setMax(int val,
boolean inclusive)
val - the int valueinclusive - true to mean this value is included in the
range; false otherwsie
public void setMin(int val,
boolean inclusive)
val - the int valueinclusive - true to mean this value is included in the
range; false otherwsie
public void validate(java.lang.Object value)
throws java.lang.Exception
validate in interface FieldValidatorjava.lang.Exception - if the validation fails
public void validate(java.lang.Object value,
java.util.Locale locale)
throws java.lang.Exception
validate in interface FieldValidatorjava.lang.Exception - if the validation fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||