| |
|
| java.lang.Object com.bostechcorp.cbesb.console.client.Validators
Validators | public class Validators (Code) | | contains a series of
author: LPS |
PASSWORD_LENGTH | static int PASSWORD_LENGTH(Code) | | |
isAlfanumeric | public static boolean isAlfanumeric(String string)(Code) | | test if it contains alfanumeric characters
a-z A-Z 0-9 ~!@#$%^&*()_+|\=-';:"?><,./
Parameters: s - |
isDate | public static boolean isDate(String dateString)(Code) | | if can be converted to Date
Parameters: s - |
isEmail | public static boolean isEmail(String aEmailAddress)(Code) | | test if it valid email adress format. An empty value is allowed.
Parameters: s - |
isLogin | public static boolean isLogin(String nickname)(Code) | | Alfanumeric no spaces alowed
Parameters: s - |
isNumber | public static boolean isNumber(String numberString)(Code) | | if can be converted to Long
Parameters: s - |
isPassword | public static boolean isPassword(String password)(Code) | | if is alfanumeric and has length longer than PASSWORD_LENGTH
Parameters: s - |
isPasswordConfirmed | public static boolean isPasswordConfirmed(String password, String confirmation)(Code) | | compares the two strings to be passwords and to be identical
Parameters: password - Parameters: confirmation - |
|
|
|