|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.perdues.db.Validate
Methods related to data validation.
Method Summary | |
static boolean |
okBoolean(java.lang.String sBoolean)
A boolean in a form is valid if it is "0" or "1". |
static boolean |
okEmail(java.lang.String email)
Rough validation of an email address. |
static boolean |
okPhone(java.lang.String phone)
Very generic phone number validator. |
static int |
okPhoneDigits(java.lang.String phone)
As okPhone, but returns the number of digits before the first "x", or a negative number if the input is not valid. |
static boolean |
okSSN(java.lang.String ssn)
Social Security Number (SSN) validator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static boolean okBoolean(java.lang.String sBoolean)
public static boolean okEmail(java.lang.String email)
public static boolean okPhone(java.lang.String phone)
public static int okPhoneDigits(java.lang.String phone)
public static boolean okSSN(java.lang.String ssn)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |