Java org.apache.commons.validator GenericValidator fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.validator GenericValidator fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.validator GenericValidator.

The text is from its open source code.

Subclass

org.apache.commons.validator.GenericValidator has subclasses.
Click this link to see all its subclasses.

Method

booleanisBlankOrNull(String value)

Checks if the field isn't null and length of the field is greater than zero not including whitespace.

booleanisByte(String value)

Checks if the value can safely be converted to a byte primitive.

booleanisCreditCard(String value)
Checks if the field is a valid credit card number.
booleanisDate(String value, String datePattern, boolean strict)

Checks if the field is a valid date.

booleanisDate(String value, Locale locale)

Checks if the field is a valid date.

booleanisDouble(String value)

Checks if the value can safely be converted to a double primitive.

booleanisEmail(String value)

Checks if a field has a valid e-mail address.

booleanisFloat(String value)

Checks if the value can safely be converted to a float primitive.

booleanisInRange(byte value, byte min, byte max)

Checks if a value is within a range (min & max specified in the vars attribute).

booleanisInRange(int value, int min, int max)

Checks if a value is within a range (min & max specified in the vars attribute).

booleanisInRange(float value, float min, float max)

Checks if a value is within a range (min & max specified in the vars attribute).

booleanisInRange(short value, short min, short max)

Checks if a value is within a range (min & max specified in the vars attribute).

booleanisInRange(long value, long min, long max)

Checks if a value is within a range (min & max specified in the vars attribute).

booleanisInRange(double value, double min, double max)

Checks if a value is within a range (min & max specified in the vars attribute).

booleanisInt(String value)

Checks if the value can safely be converted to a int primitive.

booleanisLong(String value)

Checks if the value can safely be converted to a long primitive.

booleanisShort(String value)

Checks if the value can safely be converted to a short primitive.

booleanisUrl(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.
booleanmatchRegexp(String value, String regexp)

Checks if the value matches the regular expression.

booleanmaxLength(String value, int max)

Checks if the value's length is less than or equal to the max.

booleanmaxValue(int value, int max)

Checks if the value is less than or equal to the max.

booleanmaxValue(long value, long max)

Checks if the value is less than or equal to the max.

booleanmaxValue(double value, double max)

Checks if the value is less than or equal to the max.

booleanmaxValue(float value, float max)

Checks if the value is less than or equal to the max.

booleanminLength(String value, int min)

Checks if the value's length is greater than or equal to the min.

booleanminValue(int value, int min)

Checks if the value is greater than or equal to the min.

booleanminValue(long value, long min)

Checks if the value is greater than or equal to the min.

booleanminValue(double value, double min)

Checks if the value is greater than or equal to the min.

booleanminValue(float value, float min)

Checks if the value is greater than or equal to the min.