Add a the result of a validator action.
Add a the result of a validator action.
Add the result of a validator action.
Add the result of a validator action.
Add an allowed CreditCardType that participates in the card
validation algorithm.
Add an Arg
to the replacement argument list.
Add a Arg
to the arg0 list.
Add a Arg
to the arg1 list.
Add a Arg
to the arg2 list.
Add a Arg
to the arg3 list.
Add a Constant
(locale level).
Add a global constant to the resource.
Add a Constant
to the locale level.
Add a global constant to the resource.
Add a Constant
to the locale level.
Add a global constant to the resource.
Add a Form
to the FormSet
.
Add a FormSet
to this ValidatorResources
object.
Add a resource to be used during the processing
of validations.
Add a ValidatorAction
to the resource.
Add a Var
, based on the values passed in, to the
Field
.
Add a Var
, based on the values passed in, to the
Field
.
Allow two slashes in the path component of the URL.
Allows all validly formatted schemes to pass validation instead of supplying a
set of valid schemes.
The set of schemes that are allowed to be in a URL.
Arg - class org.apache.commons.validator.
Arg
A default argument or an argument for a
specific validator definition (ex: required)
can be stored to pass into a message as parameters.
This is the value that will be used as a key if the Arg
name field has no value.
args - field in class org.apache.commons.validator.
Field Holds Maps of arguments.
The CreditCardTypes that are allowed to pass validation.
The class loader to use for instantiating application objects.
The full class name of the class containing
the validation method associated with this action.
clear() - method in class org.apache.commons.validator.util.
Flags Turn off all flags.
Clears the form name, resources that were added, and the page that was
set (if any).
Clear all results recorded by this object.
clone() - method in class org.apache.commons.validator.
Arg Creates and returns a copy of this object.
clone() - method in class org.apache.commons.validator.
Field Creates and returns a copy of this object.
clone() - method in class org.apache.commons.validator.util.
Flags Clone this Flags object.
clone() - method in class org.apache.commons.validator.
Msg Creates and returns a copy of this object.
clone() - method in class org.apache.commons.validator.
Var Creates and returns a copy of this object.
A constant can be used to define a global or
locale level constant that can be used to replace
values in certain fields.
A Map
of Constant
s
using the name field of the Constant
as the key.
Returns true if this Form contains a Field with the given name.
Makes a deep copy of a FastHashMap
if the values
are String
, Msg
, Arg
,
or Var
.
Makes a deep copy of a FastHashMap
if the values
are Msg
, Arg
,
or Var
.
Country component of Locale
(optional).
Returns the number of times the token appears in the target.
CreditCardType implementations define how validation is performed
for one type/brand of credit card.
CreditCardValidator used in wrapper method.
Perform credit card validations.
Create a new CreditCardValidator with default options.
Create a new CreditCardValidator with the specified options.
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.
Resources key the Field
is stored under.
Resources key the Field
is stored under.
flags - field in class org.apache.commons.validator.util.
Flags Represents the current flag state.
Flags - class org.apache.commons.validator.util.
Flags Represents a collection of 64 boolean (on/off) flags.
Flags() - constructor for class org.apache.commons.validator.util.
Flags Create a new Flags object.
Initialize a new Flags object with the given flags.
Form - class org.apache.commons.validator.
Form
This contains a set of validation rules for a form/JavaBean.
Checks if the value can safely be converted to a byte primitive.
Checks if the field is a valid credit card number.
Checks if the field is a valid date.
Checks if the field is a valid date.
Checks if the value can safely be converted to a double primitive.
Checks if the value can safely be converted to a float primitive.
Checks if the value can safely be converted to a int primitive.
Checks if the value can safely be converted to a long primitive.
Checks if the value can safely be converted to a short primitive.
A Map
of Form
s
using the name field of the Form
as the key.
Holds a set of Form
s stored associated with a
Locale
based on the country, language, and variant specified.
Used to generate the javascript name when it is not specified.
Generate correct key
value.
This class contains basic methods for performing validations that return the
correctly typed class based on the validation performed.
This class contains basic methods for performing validations.
Return the set of all recorded messages, without distinction
by which property the messages are associated with.
Gets a Form
based on the name of the form and the Locale
that
most closely matches the Locale
passed in.
Gets a Form
based on the name of the form and the
Locale
that most closely matches the Locale
passed in.
Gets the default Arg
object at the given position.
Gets the Arg
object at the given position.
Gets the default arg0 Arg
object.
Gets the arg0 Arg
object based on the key passed in.
Gets the default arg1 Arg
object.
Gets the arg1 Arg
object based on the key passed in.
Gets the default arg2 Arg
object.
Gets the arg2 Arg
object based on the key passed in.
Gets the default arg3 Arg
object.
Gets the arg3 Arg
object based on the key passed in.
Retrieves the Args for the given validator name.
Returns the resource bundle name.
Returns the resource bundle name.
Return the class loader to be used for instantiating application objects
when required.
Returns the ClassLoader set in the Validator contained in the parameter
Map.
Gets the class of the validator action.
Gets an instance based on the validator action's classname.
Retrieves the closest matching Field
based
on FormSet
's locale.
Gets the equivalent of the country component of Locale
.
Adds a '/' on either side of the regular expression.
Adds a '/' on either side of the regular expression.
Gets an unmodifiable Set
of the dependencies.
Gets the dependencies as a Collection
.
Gets an unmodifiable List
of the dependencies in the same
order they were defined in parameter passed to the setDepends() method.
Returns the dependent validator names as an unmodifiable
List
.
Gets the validation rules for this field as a comma separated list.
Gets the dependencies of the validator action as a comma separated list
of validator names.
Returns the Field that was validated.
Returns the Field with the given name or null if this Form has no such
field.
The Field
s are returned as an unmodifiable Map
.
Gets the position of the Field
in the validation list.
A List
of Field
s is returned as an
unmodifiable List
.
Returns the current flags.
Gets a Form
based on the name of the form and the
Locale
that most closely matches the Locale
passed in.
Retrieve a Form
based on the form name.
Retrieve a Form
based on the form name.
Gets a Form
based on the name of the form and the
Locale
that most closely matches the Locale
passed in.
Gets the form name which is the key to a set of validation rules.
A Map
of Form
s is returned as an
unmodifiable Map
with the key based on the form name.
Gets the indexed property name of the field.
Gets the indexed property name of the field.
Returns an indexed property from the object we're validating.
Returns the Singleton instance of this validator.
Returns the Singleton instance of this validator.
Gets the Javascript equivalent of the java class and method
associated with this action.
Gets the Javascript function name.
Gets the JavaScript type of the variable.
getKey() - method in class org.apache.commons.validator.
Arg Gets the key/value.
Gets a unique key based on the property and indexedProperty fields.
getKey() - method in class org.apache.commons.validator.
Msg Gets the key/value.
Gets the equivalent of the language component of Locale
.
Retrieve a message object.
The Field
's messages are returned as an
unmodifiable Map
.
Gets the name of method being called for the validator action.
Gets the method parameters for the method.
Gets the method parameters for the method as an unmodifiable List.
Gets the message associated with the validator action.
Retrieve a message value.
getName() - method in class org.apache.commons.validator.
Arg Gets the name of the dependency.
Gets the name of the constant.
Gets the name/key of the set of validation rules.
getName() - method in class org.apache.commons.validator.
Msg Gets the name of the dependency.
Gets the name of the validator action.
getName() - method in class org.apache.commons.validator.
Var Gets the name of the variable.
Returns true if the Validator is only returning Fields that fail validation.
Gets the page value that the Field is associated with for
validation.
Returns the value of the specified parameter that will be used during the
processing of validations.
Converts a List of parameter class names into their values contained in
the parameters Map.
Argument's replacement position.
Gets the property name of the field.
Return the set of property names for which at least one message has
been recorded.
Gets whether or not the key is a resource.
Get a resource to be used during the processing of validations.
Gets the result returned by a validation method.
Get a Map
of any Object
s returned from
validation routines.
Return the boolean as to whether the context classloader should be used.
Gets whether or not the validation passed.
Return an instance of the validation class or null if the validation
method is static so does not require an instance to be executed.
Get a ValidatorAction
based on it's name.
Get an unmodifiable Map
of the ValidatorAction
s.
Gets the ValidatorResult
associated
with the key passed in.
Gets the value of the constant.
Gets the value of the variable.
Convenience method for getting a value from a bean property as a
String
.
Convenience method for getting a value from a bean property as a
String
.
Gets the equivalent of the variant component of Locale
.
The Field
's variables are returned as an
unmodifiable Map
.
Retrieve a variable's value.
Initializes a ValidatorResources
based on the
InputStream
and automatically process the resources.
Initializes the ValidatorResources
based on the InputStream
and automatically process the resources.
Initializes a ValidatorResources
based on the InputStream
and processes the resources based on the boolean
passed in.
Initializes a ValidatorResources
based on a
file path and automatically process the resources.
Singleton instance of this class.
Singleton instance of this class.
If the java method matching the correct signature isn't static, the
instance is stored in the action.
Process the Form
objects.
Replace the args key value with the key/value pairs passed in.
Checks if the field isn't null and length of the field is greater than zero not
including whitespace.
Checks if the value can safely be converted to a byte primitive.
Checks if the field is a valid credit card number.
Checks if the field is a valid date.
Checks if the field is a valid date.
Checks if the validator is listed as a dependency.
Checks whether or not the value passed in is in the depends field.
Checks if the value can safely be converted to a double primitive.
Checks if a field has a valid e-mail address.
Return true
if there are no messages recorded
in this collection, or false
otherwise.
Checks if the value can safely be converted to a float primitive.
If there is a value specified for the indexedProperty field then
true
will be returned.
Checks if a value is within a range (min & max specified
in the vars attribute).
Checks if a value is within a range (min & max specified
in the vars attribute).
Checks if a value is within a range (min & max specified
in the vars attribute).
Checks if a value is within a range (min & max specified
in the vars attribute).
Checks if a value is within a range (min & max specified
in the vars attribute).
Checks if a value is within a range (min & max specified
in the vars attribute).
Checks if the value can safely be converted to a int primitive.
Checks if the value can safely be converted to a long primitive.
Tests whether the given flag is off.
Tests whether the given flag is on.
Whether or not the this FormSet
was processed
for replacing variables in strings with their values.
Tests whether or not the key is a resource key or literal value.
Tests whether or not the key is a resource key or literal value.
Checks if the value can safely be converted to a short primitive.
Checks if a field is a valid url address.
Tests whether or not the validation passed.
If the result object is a Boolean
, it will return its
value.
Checks if the field is a valid credit card number.
Checks if a field has a valid e-mail address.
Checks if a field has a valid url address.
Checks if the field is a valid date.
Checks if the field is a valid date.
Returns true if the authority is properly formatted.
Returns true if the domain component of an email address is valid.
Returns true if the given fragment is null or fragments are allowed.
Returns true if the path is valid.
Checks for a valid credit card number.
Returns true if the query is null or it's a properly formatted query string.
Validates a symbolic domain name.
Returns true if the user component of an email address is valid.
page - field in class org.apache.commons.validator.
Field The current page number to validate.
The Class objects for each entry in methodParameterList.
Maps validation method parameter class names to the objects to be passed
into the method.
Includes hostname/ip and port number.
position - field in class org.apache.commons.validator.
Arg This argument's position in the message.
Process the ValidatorResources
object.
Processes all of the Form
s.
Creates a FastHashMap
for the isDependency method
based on depends.
Replace constants with values in fields and process the depends field
to create the dependency Map
.
Processes all of the Form
's Field
s.
Replace the arg Collection
key value with the key/value
pairs passed in.
Whether or not the this FormSet
was processed
for replacing variables in strings with their values.
Process the Form
objects.
Replace the args key value with the key/value pairs passed in.
Replace the vars value with the key/value pairs passed in.
Return the set of property names for which at least one message has
been recorded.
Add a FormSet
to this ValidatorResources
object.
Sets the resource bundle name.
Sets the resource bundle name.
Set the class loader to be used for instantiating application objects
when required.
Sets the class of the validator action.
Sets an instance based on the validator action's classname.
Sets the equivalent of the country component of Locale
.
Sets the validation rules for this field as a comma separated list.
Sets the dependencies of the validator action.
Sets the position of the Field
in the validation list.
Sets the form name which is the key to a set of validation rules.
Sets the indexed property name of the field.
Sets the indexed property name of the field.
Sets the Javascript equivalent of the java class and method
associated with this action.
Sets the fully qualified class path of the Javascript function.
Sets the Javascript function name.
Sets the JavaScript type of the variable.
Sets a unique key for the field.
Sets the equivalent of the language component of Locale
.
Sets the name of method being called for the validator action.
Sets the method parameters for the method.
Sets the message associated with the validator action.
Sets the name of the dependency.
Sets the name of the constant.
Sets the name/key of the set of validation rules.
Sets the name of the dependency.
Sets the name of the validator action.
Sets the name of the variable.
Configures which Fields the Validator returns from the validate() method.
Sets the page value that the Field is associated with for
validation.
Set a parameter of a pluggable validation method.
Set this argument's replacement position.
Sets the property name of the field.
Sets whether or not the key is a resource.
Sets whether or not the key is a resource.
Sets the result returned by a validation method.
Determine whether to use the Context ClassLoader (the one found by
calling Thread.currentThread().getContextClassLoader()
)
to resolve/load classes that are defined in various rules.
Sets whether or not the validation passed.
Sets the value of the constant.
Sets the value of the variable.
Sets the equivalent of the variant component of Locale
.
Performs validations based on the configured resources.
Run the configured validations on this field.
Validate all Fields in this Form on the given page and below.
Checks for a valid credit card number.
Checks for a valid credit card number.
Executes the given ValidatorAction and all ValidatorActions that it
depends on.
The Class object loaded from the classname.
The Method object loaded from the method name.
Validations are processed by the validate method.
Construct a Validator
that will
use the ValidatorResources
passed in to retrieve pluggable validators
the different sets of validation rules.
Construct a Validator
that will
use the ValidatorResources
passed in to retrieve pluggable validators
the different sets of validation rules.
Resources key the ValidatorAction
is stored under.
Resources key the ValidatorAction
is stored under.
Resources key the Validator
is stored under.
Resources key the Validator
is stored under.
Contains the information to dynamically create and run a validation
method.
The base exception for the Validator Framework.
Constructs an Exception with no specified detail message.
Constructs an Exception with the specified detail message.
General purpose class for storing FormSet
objects based
on their associated Locale
.
Create an empty ValidatorResources object.
Create a ValidatorResources object from an InputStream.
Create a ValidatorResources object from an InputStream.
Maps an xml file to ValidatorResources
.
This contains the results of a set of validation rules processed
on a JavaBean.
Constructs a ValidatorResult
with the associated field being
validated.
This contains the results of a set of validation rules processed
on a JavaBean.
The name of the constant.
value - field in class org.apache.commons.validator.
Var The name of the value.
Var - class org.apache.commons.validator.
Var A variable that can be associated with a Field
for
passing in information to a pluggable validator.
Var() - constructor for class org.apache.commons.validator.
Var Variant component of Locale
(optional).