Example usage for Java org.apache.commons.validator GenericValidator fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | isBlankOrNull(String value) Checks if the field isn't null and length of the field is greater than zero not including whitespace. |
boolean | isByte(String value) Checks if the value can safely be converted to a byte primitive. |
boolean | isCreditCard(String value) Checks if the field is a valid credit card number. |
boolean | isDate(String value, String datePattern, boolean strict) Checks if the field is a valid date. |
boolean | isDate(String value, Locale locale) Checks if the field is a valid date. |
boolean | isDouble(String value) Checks if the value can safely be converted to a double primitive. |
boolean | isEmail(String value) Checks if a field has a valid e-mail address. |
boolean | isFloat(String value) Checks if the value can safely be converted to a float primitive. |
boolean | isInRange(byte value, byte min, byte max) Checks if a value is within a range (min & max specified in the vars attribute). |
boolean | isInRange(int value, int min, int max) Checks if a value is within a range (min & max specified in the vars attribute). |
boolean | isInRange(float value, float min, float max) Checks if a value is within a range (min & max specified in the vars attribute). |
boolean | isInRange(short value, short min, short max) Checks if a value is within a range (min & max specified in the vars attribute). |
boolean | isInRange(long value, long min, long max) Checks if a value is within a range (min & max specified in the vars attribute). |
boolean | isInRange(double value, double min, double max) Checks if a value is within a range (min & max specified in the vars attribute). |
boolean | isInt(String value) Checks if the value can safely be converted to a int primitive. |
boolean | isLong(String value) Checks if the value can safely be converted to a long primitive. |
boolean | isShort(String value) Checks if the value can safely be converted to a short primitive. |
boolean | isUrl(String value) Checks if a field is a valid url address. If you need to modify what is considered valid then consider using the UrlValidator directly. |
boolean | matchRegexp(String value, String regexp) Checks if the value matches the regular expression. |
boolean | maxLength(String value, int max) Checks if the value's length is less than or equal to the max. |
boolean | maxValue(int value, int max) Checks if the value is less than or equal to the max. |
boolean | maxValue(long value, long max) Checks if the value is less than or equal to the max. |
boolean | maxValue(double value, double max) Checks if the value is less than or equal to the max. |
boolean | maxValue(float value, float max) Checks if the value is less than or equal to the max. |
boolean | minLength(String value, int min) Checks if the value's length is greater than or equal to the min. |
boolean | minValue(int value, int min) Checks if the value is greater than or equal to the min. |
boolean | minValue(long value, long min) Checks if the value is greater than or equal to the min. |
boolean | minValue(double value, double min) Checks if the value is greater than or equal to the min. |
boolean | minValue(float value, float min) Checks if the value is greater than or equal to the min. |