|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.util.ValidationHelper
Data Validation functions using Regex
Constructor Summary | |
ValidationHelper()
|
Method Summary | |
static boolean |
isAlphaNumeric(java.lang.String evalString,
boolean required)
Tests that the input string contains only alpha numeric or white spaces |
static boolean |
isAlphaNumeric(java.lang.String evalString,
boolean required,
int maxLength)
|
static boolean |
isDecimal(java.lang.String evalString,
boolean required)
Tests that the input string contains only numeric |
static boolean |
isDecimal(java.lang.String evalString,
boolean required,
int maxLength)
|
static boolean |
isEmailAddress(java.lang.String evalString,
boolean required)
Tests that the input string contains a valid email addess |
static boolean |
isEmailAddress(java.lang.String evalString,
boolean required,
int maxLength)
|
static boolean |
isInteger(java.lang.String evalString,
boolean required)
Tests that the input string contains only an integer |
static boolean |
isInteger(java.lang.String evalString,
boolean required,
int maxLength)
|
static boolean |
isLooseAlphaNumeric(java.lang.String evalString,
boolean required)
|
static boolean |
isLooseAlphaNumeric(java.lang.String evalString,
boolean required,
int maxLength)
|
static boolean |
isTooLong(java.lang.String evalString,
int maxLength)
|
static boolean |
isURL(java.lang.String evalString,
boolean required)
Tests that the input string contains a valid URL |
static boolean |
isURL(java.lang.String evalString,
boolean required,
int maxLength)
|
static boolean |
isValidIdentifier(java.lang.String folderName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ValidationHelper()
Method Detail |
public static boolean isAlphaNumeric(java.lang.String evalString, boolean required)
evalString
- The string that is to be evaluatedrequired
- indicates whether the field is required or not
public static boolean isAlphaNumeric(java.lang.String evalString, boolean required, int maxLength)
public static boolean isLooseAlphaNumeric(java.lang.String evalString, boolean required)
public static boolean isLooseAlphaNumeric(java.lang.String evalString, boolean required, int maxLength)
public static boolean isDecimal(java.lang.String evalString, boolean required)
evalString
- The string that is to be evaluated
public static boolean isDecimal(java.lang.String evalString, boolean required, int maxLength)
public static boolean isInteger(java.lang.String evalString, boolean required)
evalString
- The string that is to be evaluated
public static boolean isInteger(java.lang.String evalString, boolean required, int maxLength)
public static boolean isEmailAddress(java.lang.String evalString, boolean required)
evalString
- The string that is to be evaluated
public static boolean isEmailAddress(java.lang.String evalString, boolean required, int maxLength)
public static boolean isURL(java.lang.String evalString, boolean required)
evalString
- The string that is to be evaluated
public static boolean isURL(java.lang.String evalString, boolean required, int maxLength)
public static boolean isValidIdentifier(java.lang.String folderName)
public static boolean isTooLong(java.lang.String evalString, int maxLength)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |