Class Summary |
AbstractCalendarValidator |
Abstract class for Date/Time/Calendar validation.
This is a base class for building Date / Time
Validators using format parsing.
|
AbstractFormatValidator |
Abstract class for Format based Validation.
This is a base class for building Date and Number
Validators using format parsing.
|
AbstractNumberValidator |
Abstract class for Number Validation.
This is a base class for building Number
Validators using format parsing.
|
Arg |
A default argument or an argument for a
specific validator definition (ex: required)
can be stored to pass into a message as parameters. |
BigDecimalValidator |
BigDecimal Validation and Conversion routines (java.math.BigDecimal ).
This validator provides a number of methods for
validating/converting a String value to
a BigDecimal using java.text.NumberFormat
to parse either:
- using the default format for the default
Locale
- using a specified pattern with the default
Locale
- using the default format for a specified
Locale
- using a specified pattern with a specified
Locale
Use one of the isValid() methods to just validate or
one of the validate() methods to validate and receive a
converted BigDecimal value.
Fraction/decimal values are automatically trimmed to the appropriate length.
Once a value has been sucessfully converted the following
methods can be used to perform minimum, maximum and range checks:
minValue() checks whether the value is greater
than or equal to a specified minimum.
maxValue() checks whether the value is less
than or equal to a specified maximum.
isInRange() checks whether the value is within
a specified range of values.
So that the same mechanism used for parsing an input value
for validation can be used to format output, corresponding
format() methods are also provided. |
BigIntegerValidator |
BigInteger Validation and Conversion routines (java.math.BigInteger ).
This validator provides a number of methods for
validating/converting a String value to
a BigInteger using java.text.NumberFormat
to parse either:
- using the default format for the default
Locale
- using a specified pattern with the default
Locale
- using the default format for a specified
Locale
- using a specified pattern with a specified
Locale
Use one of the isValid() methods to just validate or
one of the validate() methods to validate and receive a
converted BigInteger value.
Once a value has been sucessfully converted the following
methods can be used to perform minimum, maximum and range checks:
minValue() checks whether the value is greater
than or equal to a specified minimum.
maxValue() checks whether the value is less
than or equal to a specified maximum.
isInRange() checks whether the value is within
a specified range of values.
So that the same mechanism used for parsing an input value
for validation can be used to format output, corresponding
format() methods are also provided. |
ByteValidator |
Byte Validation and Conversion routines (java.lang.Byte ).
This validator provides a number of methods for
validating/converting a String value to
a Byte using java.text.NumberFormat
to parse either:
- using the default format for the default
Locale
- using a specified pattern with the default
Locale
- using the default format for a specified
Locale
- using a specified pattern with a specified
Locale
Use one of the isValid() methods to just validate or
one of the validate() methods to validate and receive a
converted Byte value.
Once a value has been sucessfully converted the following
methods can be used to perform minimum, maximum and range checks:
minValue() checks whether the value is greater
than or equal to a specified minimum.
maxValue() checks whether the value is less
than or equal to a specified maximum.
isInRange() checks whether the value is within
a specified range of values.
So that the same mechanism used for parsing an input value
for validation can be used to format output, corresponding
format() methods are also provided. |
CalendarValidator |
Calendar Validation and Conversion routines (java.util.Calendar ).
This validator provides a number of methods for validating/converting
a String date value to a java.util.Calendar using
java.text.DateFormat to parse either:
- using the default format for the default
Locale
- using a specified pattern with the default
Locale
- using the default format for a specified
Locale
- using a specified pattern with a specified
Locale
For each of the above mechanisms, conversion method (i.e the
validate methods) implementations are provided which
either use the default TimeZone or allow the
TimeZone to be specified.
Use one of the isValid() methods to just validate or
one of the validate() methods to validate and receive a
converted Calendar value.
Implementations of the validate() method are provided
to create Calendar objects for different time zones
if the system default is not appropriate.
Alternatively the CalendarValidator's adjustToTimeZone() method
can be used to adjust the TimeZone of the Calendar
object afterwards.
Once a value has been sucessfully converted the following
methods can be used to perform various date comparison checks:
compareDates() compares the day, month and
year of two calendars, returing 0, -1 or +1 indicating
whether the first date is equal, before or after the second.
compareWeeks() compares the week and
year of two calendars, returing 0, -1 or +1 indicating
whether the first week is equal, before or after the second.
compareMonths() compares the month and
year of two calendars, returing 0, -1 or +1 indicating
whether the first month is equal, before or after the second.
compareQuarters() compares the quarter and
year of two calendars, returing 0, -1 or +1 indicating
whether the first quarter is equal, before or after the second.
compareYears() compares the
year of two calendars, returing 0, -1 or +1 indicating
whether the first year is equal, before or after the second.
So that the same mechanism used for parsing an input value
for validation can be used to format output, corresponding
format() methods are also provided. |
CreditCardValidator |
Perform credit card validations.
By default, all supported card types are allowed. |
CreditCardValidator.Amex | |
CreditCardValidator.CreditCardType |
CreditCardType implementations define how validation is performed
for one type/brand of credit card. |
CreditCardValidator.Discover | |
CreditCardValidator.Mastercard | |
CreditCardValidator.Visa |
Change to support Visa Carte Blue used in France
has been removed - see Bug 35926 |
CurrencyValidator |
Currency Validation and Conversion routines (java.math.BigDecimal ).
This is one implementation of a currency validator that has the following features:
- It is lenient about the the presence of the currency symbol
- It converts the currency to a
java.math.BigDecimal
However any of the number validators can be used for currency validation.
|
DateValidator |
Perform date validations.
This class is a Singleton; you can retrieve the instance via the
getInstance() method.
|
DateValidator |
Date Validation and Conversion routines (java.util.Date ).
This validator provides a number of methods for validating/converting
a String date value to a java.util.Date using
java.text.DateFormat to parse either:
- using the default format for the default
Locale
- using a specified pattern with the default
Locale
- using the default format for a specified
Locale
- using a specified pattern with a specified
Locale
For each of the above mechanisms, conversion method (i.e the
validate methods) implementations are provided which
either use the default TimeZone or allow the
TimeZone to be specified.
Use one of the isValid() methods to just validate or
one of the validate() methods to validate and receive a
converted Date value.
Implementations of the validate() method are provided
to create Date objects for different time zones
if the system default is not appropriate.
Once a value has been sucessfully converted the following
methods can be used to perform various date comparison checks:
compareDates() compares the day, month and
year of two dates, returing 0, -1 or +1 indicating
whether the first date is equal, before or after the second.
compareWeeks() compares the week and
year of two dates, returing 0, -1 or +1 indicating
whether the first week is equal, before or after the second.
compareMonths() compares the month and
year of two dates, returing 0, -1 or +1 indicating
whether the first month is equal, before or after the second.
compareQuarters() compares the quarter and
year of two dates, returing 0, -1 or +1 indicating
whether the first quarter is equal, before or after the second.
compareYears() compares the
year of two dates, returing 0, -1 or +1 indicating
whether the first year is equal, before or after the second.
So that the same mechanism used for parsing an input value
for validation can be used to format output, corresponding
format() methods are also provided. |
DoubleValidator |
Double Validation and Conversion routines (java.lang.Double ).
This validator provides a number of methods for
validating/converting a String value to
a Double using java.text.NumberFormat
to parse either:
- using the default format for the default
Locale
- using a specified pattern with the default
Locale
- using the default format for a specified
Locale
- using a specified pattern with a specified
Locale
Use one of the isValid() methods to just validate or
one of the validate() methods to validate and receive a
converted Double value.
Once a value has been sucessfully converted the following
methods can be used to perform minimum, maximum and range checks:
minValue() checks whether the value is greater
than or equal to a specified minimum.
maxValue() checks whether the value is less
than or equal to a specified maximum.
isInRange() checks whether the value is within
a specified range of values.
So that the same mechanism used for parsing an input value
for validation can be used to format output, corresponding
format() methods are also provided. |
EmailValidator |
Perform email validations.
This class is a Singleton; you can retrieve the instance via the getInstance() method.
|
Field |
This contains the list of pluggable validators to run on a field and any
message information and variables to perform the validations and generate
error messages. |
Flags |
Represents a collection of 64 boolean (on/off) flags. |
FloatValidator |
Float Validation and Conversion routines (java.lang.Float ).
This validator provides a number of methods for
validating/converting a String value to
a Float using java.text.NumberFormat
to parse either:
- using the default format for the default
Locale
- using a specified pattern with the default
Locale
- using the default format for a specified
Locale
- using a specified pattern with a specified
Locale
Use one of the isValid() methods to just validate or
one of the validate() methods to validate and receive a
converted Float value.
Once a value has been sucessfully converted the following
methods can be used to perform minimum, maximum and range checks:
minValue() checks whether the value is greater
than or equal to a specified minimum.
maxValue() checks whether the value is less
than or equal to a specified maximum.
isInRange() checks whether the value is within
a specified range of values.
So that the same mechanism used for parsing an input value
for validation can be used to format output, corresponding
format() methods are also provided. |
Form |
This contains a set of validation rules for a form/JavaBean. |
FormSet |
Holds a set of Form s stored associated with a Locale
based on the country, language, and variant specified. |
FormSetFactory |
Factory class used by Digester to create FormSet's.
|
GenericTypeValidator |
This class contains basic methods for performing validations that return the
correctly typed class based on the validation performed.
|
GenericValidator |
This class contains basic methods for performing validations.
|
IntegerValidator |
Integer Validation and Conversion routines (java.lang.Integer ).
This validator provides a number of methods for
validating/converting a String value to
a Integer using java.text.NumberFormat
to parse either:
- using the default format for the default
Locale
- using a specified pattern with the default
Locale
- using the default format for a specified
Locale
- using a specified pattern with a specified
Locale
Use one of the isValid() methods to just validate or
one of the validate() methods to validate and receive a
converted Integer value.
Once a value has been sucessfully converted the following
methods can be used to perform minimum, maximum and range checks:
minValue() checks whether the value is greater
than or equal to a specified minimum.
maxValue() checks whether the value is less
than or equal to a specified maximum.
isInRange() checks whether the value is within
a specified range of values.
So that the same mechanism used for parsing an input value
for validation can be used to format output, corresponding
format() methods are also provided. |
ISBNValidator |
A class for validating 10 digit ISBN codes.
|
LongValidator |
Long Validation and Conversion routines (java.lang.Long ).
This validator provides a number of methods for
validating/converting a String value to
a Long using java.text.NumberFormat
to parse either:
- using the default format for the default
Locale
- using a specified pattern with the default
Locale
- using the default format for a specified
Locale
- using a specified pattern with a specified
Locale
Use one of the isValid() methods to just validate or
one of the validate() methods to validate and receive a
converted Long value.
Once a value has been sucessfully converted the following
methods can be used to perform minimum, maximum and range checks:
minValue() checks whether the value is greater
than or equal to a specified minimum.
maxValue() checks whether the value is less
than or equal to a specified maximum.
isInRange() checks whether the value is within
a specified range of values.
So that the same mechanism used for parsing an input value
for validation can be used to format output, corresponding
format() methods are also provided. |
Msg |
An alternative message can be associated with a Field
and a pluggable validator instead of using the default message
stored in the ValidatorAction (aka pluggable validator).
|
PercentValidator |
Percentage Validation and Conversion routines (java.math.BigDecimal ).
This is one implementation of a percent validator that has the following features:
- It is lenient about the the presence of the percent symbol
- It converts the percent to a
java.math.BigDecimal
However any of the number validators can be used for percent validation.
|
ShortValidator |
Short Validation and Conversion routines (java.lang.Short ).
This validator provides a number of methods for
validating/converting a String value to
a Short using java.text.NumberFormat
to parse either:
- using the default format for the default
Locale
- using a specified pattern with the default
Locale
- using the default format for a specified
Locale
- using a specified pattern with a specified
Locale
Use one of the isValid() methods to just validate or
one of the validate() methods to validate and receive a
converted Short value.
Once a value has been sucessfully converted the following
methods can be used to perform minimum, maximum and range checks:
minValue() checks whether the value is greater
than or equal to a specified minimum.
maxValue() checks whether the value is less
than or equal to a specified maximum.
isInRange() checks whether the value is within
a specified range of values.
So that the same mechanism used for parsing an input value
for validation can be used to format output, corresponding
format() methods are also provided. |
TimeValidator |
Time Validation and Conversion routines (java.util.Calendar ).
This validator provides a number of methods for validating/converting
a String time value to a java.util.Calendar using
java.text.DateFormat to parse either:
- using the default format for the default
Locale
- using a specified pattern with the default
Locale
- using the default format for a specified
Locale
- using a specified pattern with a specified
Locale
For each of the above mechanisms, conversion method (i.e the
validate methods) implementations are provided which
either use the default TimeZone or allow the
TimeZone to be specified.
Use one of the isValid() methods to just validate or
one of the validate() methods to validate and receive a
converted Calendar value for the time.
Implementations of the validate() method are provided
to create Calendar objects for different time zones
if the system default is not appropriate.
Alternatively the CalendarValidator's adjustToTimeZone() method
can be used to adjust the TimeZone of the Calendar
object afterwards.
Once a value has been sucessfully converted the following
methods can be used to perform various time comparison checks:
compareTime() compares the hours, minutes, seconds
and milliseconds of two calendars, returing 0, -1 or +1 indicating
whether the first time is equal, before or after the second.
compareSeconds() compares the hours, minutes and
seconds of two times, returing 0, -1 or +1 indicating
whether the first is equal to, before or after the second.
compareMinutes() compares the hours and minutes
two times, returing 0, -1 or +1 indicating
whether the first is equal to, before or after the second.
compareHours() compares the hours
of two times, returing 0, -1 or +1 indicating
whether the first is equal to, before or after the second.
So that the same mechanism used for parsing an input value
for validation can be used to format output, corresponding
format() methods are also provided. |
UrlValidator |
Validates URLs.
Behavour of validation is modified by passing in options:
ALLOW_2_SLASHES - [FALSE] Allows double '/' characters in the path
component.
NO_FRAGMENT- [FALSE] By default fragments are allowed, if this option is
included then fragments are flagged as illegal.
ALLOW_ALL_SCHEMES - [FALSE] By default only http, https, and ftp are
considered valid schemes. |
Validator |
Validations are processed by the validate method. |
ValidatorAction |
Contains the information to dynamically create and run a validation
method. |
ValidatorException |
The base exception for the Validator Framework. |
ValidatorResources |
General purpose class for storing FormSet objects based
on their associated Locale . |
ValidatorResult |
This contains the results of a set of validation rules processed
on a JavaBean.
|
ValidatorResults |
This contains the results of a set of validation rules processed
on a JavaBean.
|
ValidatorResult.ResultStatus |
Contains the status of the validation. |
ValidatorUtils |
Basic utility methods.
|
Var |
A variable that can be associated with a Field for
passing in information to a pluggable validator. |