|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TypeChecker
Method Summary | |
---|---|
java.lang.Object |
cast(java.lang.String value)
Trys to cast the value to the appropriate type and return the value |
void |
checkMaxLength(java.lang.String value,
int max)
Checks to make sure that the value does not exceed the maximu length |
void |
checkMinLength(java.lang.String value,
int min)
Checks to make sure that the value does fall below the minimum length length |
Method Detail |
---|
java.lang.Object cast(java.lang.String value) throws InvalidTypeException
value
- which must be cast
InvalidTypeException
- thrown when value can not be castvoid checkMinLength(java.lang.String value, int min) throws InvalidLengthException
value
- to be checkedmin
- acts as the bound
InvalidLengthException
- thrown when value falls below minimumvoid checkMaxLength(java.lang.String value, int max) throws InvalidLengthException
value
- to be checkedmax
- acts as the bound
InvalidLengthException
- thrown when value exceeds maximum
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |