| java.lang.Object org.apache.portals.gems.util.ValidationHelper
ValidationHelper | abstract public class ValidationHelper (Code) | | ValidationHelper using regular expressions
author: David Sean Taylor version: $Id: $ |
Method Summary | |
public static String | formatAmericanDate(Date date) | public static String | formatAmericanDatetime(Date date) | public static String | formatEuropeanDate(Date date) | public static String | formatEuropeanDatetime(Date date) | public static boolean | isAlphaNumeric(String evalString, boolean required) | public static boolean | isAlphaNumeric(String evalString, boolean required, int maxLength) | public static boolean | isAny(String evalString, boolean required) | public static boolean | isAny(String evalString, boolean required, int maxLength) | public static boolean | isDecimal(String evalString, boolean required) | public static boolean | isDecimal(String evalString, boolean required, int maxLength) | public static boolean | isEmailAddress(String evalString, boolean required) | public static boolean | isEmailAddress(String evalString, boolean required, int maxLength) | public static boolean | isInteger(String evalString, boolean required) | public static boolean | isInteger(String evalString, boolean required, int maxLength) | public static boolean | isLooseAlphaNumeric(String evalString, boolean required) | public static boolean | isLooseAlphaNumeric(String evalString, boolean required, int maxLength) | public static boolean | isPhoneNumber(String evalString, boolean required, int maxLength) | public static boolean | isPhoneNumber(String evalString, boolean required) | public static boolean | isTooLong(String evalString, int maxLength) | public static boolean | isURL(String evalString, boolean required) | public static boolean | isURL(String evalString, boolean required, int maxLength) | public static boolean | isValidDate(String formatted) | public static boolean | isValidDatetime(String formatted) | public static boolean | isValidIdentifier(String folderName) | public static Date | parseDate(String formatted) | public static Date | parseDatetime(String formatted) |
formatAmericanDatetime | public static String formatAmericanDatetime(Date date)(Code) | | |
formatEuropeanDatetime | public static String formatEuropeanDatetime(Date date)(Code) | | |
isAlphaNumeric | public static boolean isAlphaNumeric(String evalString, boolean required)(Code) | | Tests that the input string contains only alpha numeric or white spaces
Parameters: evalString - The string that is to be evaluated Parameters: required - indicates whether the field is required or not True if the input is alpha numeric, false otherwise. |
isAlphaNumeric | public static boolean isAlphaNumeric(String evalString, boolean required, int maxLength)(Code) | | |
isAny | public static boolean isAny(String evalString, boolean required)(Code) | | |
isAny | public static boolean isAny(String evalString, boolean required, int maxLength)(Code) | | |
isDecimal | public static boolean isDecimal(String evalString, boolean required)(Code) | | Tests that the input string contains only numeric
Parameters: evalString - The string that is to be evaluated True if the input is numeric, false otherwise. |
isDecimal | public static boolean isDecimal(String evalString, boolean required, int maxLength)(Code) | | |
isEmailAddress | public static boolean isEmailAddress(String evalString, boolean required)(Code) | | Tests that the input string contains a valid email addess
Parameters: evalString - The string that is to be evaluated True if the input is a valid email address. |
isEmailAddress | public static boolean isEmailAddress(String evalString, boolean required, int maxLength)(Code) | | |
isInteger | public static boolean isInteger(String evalString, boolean required)(Code) | | Tests that the input string contains only an integer
Parameters: evalString - The string that is to be evaluated True if the input is numeric, false otherwise. |
isInteger | public static boolean isInteger(String evalString, boolean required, int maxLength)(Code) | | |
isLooseAlphaNumeric | public static boolean isLooseAlphaNumeric(String evalString, boolean required)(Code) | | |
isLooseAlphaNumeric | public static boolean isLooseAlphaNumeric(String evalString, boolean required, int maxLength)(Code) | | |
isPhoneNumber | public static boolean isPhoneNumber(String evalString, boolean required, int maxLength)(Code) | | |
isPhoneNumber | public static boolean isPhoneNumber(String evalString, boolean required)(Code) | | |
isTooLong | public static boolean isTooLong(String evalString, int maxLength)(Code) | | |
isURL | public static boolean isURL(String evalString, boolean required)(Code) | | Tests that the input string contains a valid URL
Parameters: evalString - The string that is to be evaluated True if the input is a valid URL. |
isURL | public static boolean isURL(String evalString, boolean required, int maxLength)(Code) | | |
isValidDate | public static boolean isValidDate(String formatted)(Code) | | |
isValidDatetime | public static boolean isValidDatetime(String formatted)(Code) | | |
isValidIdentifier | public static boolean isValidIdentifier(String folderName)(Code) | | |
|
|