- cardTypes - Variable in class org.apache.commons.validator.CreditCardValidator
-
The CreditCardTypes that are allowed to pass validation.
- CHECK - Static variable in class org.apache.commons.validator.ISBNValidator
-
- classLoader - Variable in class org.apache.commons.validator.Validator
-
The class loader to use for instantiating application objects.
- classname - Variable in class org.apache.commons.validator.ValidatorAction
-
The full class name of the class containing
the validation method associated with this action.
- clean(String) - Method in class org.apache.commons.validator.ISBNValidator
-
Removes all non-digit characters except for 'X' which is a valid ISBN
character.
- clear() - Method in class org.apache.commons.validator.util.Flags
-
Turn off all flags.
- clear() - Method in class org.apache.commons.validator.Validator
-
Clears the form name, resources that were added, and the page that was
set (if any).
- clear() - Method in class org.apache.commons.validator.ValidatorResults
-
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.Msg
-
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.Var
-
Creates and returns a copy of this object.
- constants - Variable in class org.apache.commons.validator.FormSet
-
A Map
of Constant
s using the name field of the
Constant
as the key.
- containsAction(String) - Method in class org.apache.commons.validator.ValidatorResult
-
Indicate whether a specified validator is in the Result.
- containsField(String) - Method in class org.apache.commons.validator.Form
-
Returns true if this Form contains a Field with the given name.
- copyFastHashMap(FastHashMap) - Static method in class org.apache.commons.validator.util.ValidatorUtils
-
Deprecated.
This method is not part of Validator's public API. Validator
will use it internally until FastHashMap references are removed. Use
copyMap() instead.
- copyMap(Map) - Static method in class org.apache.commons.validator.util.ValidatorUtils
-
Makes a deep copy of a Map
if the values are
Msg
, Arg
, or Var
.
- country - Variable in class org.apache.commons.validator.FormSet
-
Country component of Locale
(optional).
- COUNTRY_FORMSET - Static variable in class org.apache.commons.validator.FormSet
-
This is the type of FormSet
s where only language and country
locale are specified.
- countToken(String, String) - Method in class org.apache.commons.validator.UrlValidator
-
Returns the number of times the token appears in the target.
- createFormSet(ValidatorResources, String, String, String) - Method in class org.apache.commons.validator.FormSetFactory
-
Create or retrieve a FormSet
based on the language, country
and variant.
- createObject(Attributes) - Method in class org.apache.commons.validator.FormSetFactory
-
Create or retrieve a FormSet
for the specified
attributes.
- CreditCardValidator - Class in org.apache.commons.validator
-
Perform credit card validations.
- CreditCardValidator() - Constructor for class org.apache.commons.validator.CreditCardValidator
-
Create a new CreditCardValidator with default options.
- CreditCardValidator(int) - Constructor for class org.apache.commons.validator.CreditCardValidator
-
Create a new CreditCardValidator with the specified options.
- creditCardValidator - Static variable in class org.apache.commons.validator.GenericValidator
-
CreditCardValidator used in wrapper method.
- CreditCardValidator.Amex - Class in org.apache.commons.validator
-
- CreditCardValidator.Amex() - Constructor for class org.apache.commons.validator.CreditCardValidator.Amex
-
- CreditCardValidator.CreditCardType - Interface in org.apache.commons.validator
-
CreditCardType implementations define how validation is performed
for one type/brand of credit card.
- CreditCardValidator.Discover - Class in org.apache.commons.validator
-
- CreditCardValidator.Discover() - Constructor for class org.apache.commons.validator.CreditCardValidator.Discover
-
- CreditCardValidator.Mastercard - Class in org.apache.commons.validator
-
- CreditCardValidator.Mastercard() - Constructor for class org.apache.commons.validator.CreditCardValidator.Mastercard
-
- CreditCardValidator.Visa - Class in org.apache.commons.validator
-
Augmented to support Visa Carte Blue used in France
- CreditCardValidator.Visa() - Constructor for class org.apache.commons.validator.CreditCardValidator.Visa
-
- Field - Class in org.apache.commons.validator
-
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.
- Field() - Constructor for class org.apache.commons.validator.Field
-
- field - Variable in class org.apache.commons.validator.ValidatorResult
-
Field
being validated.
- FIELD_PARAM - Static variable in class org.apache.commons.validator.Validator
-
Resources key the Field
is stored under.
- fieldName - Variable in class org.apache.commons.validator.Validator
-
The name of the field on the form to validate
- fieldOrder - Variable in class org.apache.commons.validator.Field
-
The order of the Field in the Form.
- Flags - Class in org.apache.commons.validator.util
-
Represents a collection of 64 boolean (on/off) flags.
- Flags() - Constructor for class org.apache.commons.validator.util.Flags
-
Create a new Flags object.
- Flags(long) - Constructor for class org.apache.commons.validator.util.Flags
-
Initialize a new Flags object with the given flags.
- flags - Variable in class org.apache.commons.validator.util.Flags
-
Represents the current flag state.
- Form - Class in org.apache.commons.validator
-
This contains a set of validation rules for a form/JavaBean.
- Form() - Constructor for class org.apache.commons.validator.Form
-
- FORM_PARAM - Static variable in class org.apache.commons.validator.Validator
-
Resources key the Form
is stored under.
- formatByte(String) - Static method in class org.apache.commons.validator.GenericTypeValidator
-
Checks if the value can safely be converted to a byte primitive.
- formatByte(String, Locale) - Static method in class org.apache.commons.validator.GenericTypeValidator
-
Checks if the value can safely be converted to a byte primitive.
- formatCreditCard(String) - Static method in class org.apache.commons.validator.GenericTypeValidator
-
Checks if the field is a valid credit card number.
- formatDate(String, Locale) - Static method in class org.apache.commons.validator.GenericTypeValidator
-
Checks if the field is a valid date.
- formatDate(String, String, boolean) - Static method in class org.apache.commons.validator.GenericTypeValidator
-
Checks if the field is a valid date.
- formatDouble(String) - Static method in class org.apache.commons.validator.GenericTypeValidator
-
Checks if the value can safely be converted to a double primitive.
- formatDouble(String, Locale) - Static method in class org.apache.commons.validator.GenericTypeValidator
-
Checks if the value can safely be converted to a double primitive.
- formatFloat(String) - Static method in class org.apache.commons.validator.GenericTypeValidator
-
Checks if the value can safely be converted to a float primitive.
- formatFloat(String, Locale) - Static method in class org.apache.commons.validator.GenericTypeValidator
-
Checks if the value can safely be converted to a float primitive.
- formatInt(String) - Static method in class org.apache.commons.validator.GenericTypeValidator
-
Checks if the value can safely be converted to a int primitive.
- formatInt(String, Locale) - Static method in class org.apache.commons.validator.GenericTypeValidator
-
Checks if the value can safely be converted to an int primitive.
- formatJavascriptFileName() - Method in class org.apache.commons.validator.ValidatorAction
-
- formatLong(String) - Static method in class org.apache.commons.validator.GenericTypeValidator
-
Checks if the value can safely be converted to a long primitive.
- formatLong(String, Locale) - Static method in class org.apache.commons.validator.GenericTypeValidator
-
Checks if the value can safely be converted to a long primitive.
- formatShort(String) - Static method in class org.apache.commons.validator.GenericTypeValidator
-
Checks if the value can safely be converted to a short primitive.
- formatShort(String, Locale) - Static method in class org.apache.commons.validator.GenericTypeValidator
-
Checks if the value can safely be converted to a short primitive.
- formName - Variable in class org.apache.commons.validator.Validator
-
The name of the form to validate
- forms - Variable in class org.apache.commons.validator.FormSet
-
A Map
of Form
s using the name field of the
Form
as the key.
- FormSet - Class in org.apache.commons.validator
-
Holds a set of Form
s stored associated with a Locale
based on the country, language, and variant specified.
- FormSet() - Constructor for class org.apache.commons.validator.FormSet
-
- FormSetFactory - Class in org.apache.commons.validator
-
Factory class used by Digester to create FormSet's.
- FormSetFactory() - Constructor for class org.apache.commons.validator.FormSetFactory
-
- generateJsFunction() - Method in class org.apache.commons.validator.ValidatorAction
-
Used to generate the javascript name when it is not specified.
- generateKey() - Method in class org.apache.commons.validator.Field
-
Generate correct key
value.
- GenericTypeValidator - Class in org.apache.commons.validator
-
This class contains basic methods for performing validations that return the
correctly typed class based on the validation performed.
- GenericTypeValidator() - Constructor for class org.apache.commons.validator.GenericTypeValidator
-
- GenericValidator - Class in org.apache.commons.validator
-
This class contains basic methods for performing validations.
- GenericValidator() - Constructor for class org.apache.commons.validator.GenericValidator
-
- getActionMap() - Method in class org.apache.commons.validator.ValidatorResult
-
Return a Map of the validator actions in this Result.
- getActions() - Method in class org.apache.commons.validator.ValidatorResources
-
Returns a Map of String ValidatorAction names to their ValidatorAction.
- getArg(int) - Method in class org.apache.commons.validator.Field
-
Gets the default Arg
object at the given position.
- getArg(String, int) - Method in class org.apache.commons.validator.Field
-
Gets the Arg
object at the given position.
- getArgs(String) - Method in class org.apache.commons.validator.Field
-
Retrieves the Args for the given validator name.
- getBundle() - Method in class org.apache.commons.validator.Arg
-
Returns the resource bundle name.
- getBundle() - Method in class org.apache.commons.validator.Msg
-
Returns the resource bundle name.
- getBundle() - Method in class org.apache.commons.validator.Var
-
Returns the resource bundle name.
- getClassLoader() - Method in class org.apache.commons.validator.Validator
-
Return the class loader to be used for instantiating application objects
when required.
- getClassLoader(Map) - Method in class org.apache.commons.validator.ValidatorAction
-
Returns the ClassLoader set in the Validator contained in the parameter
Map.
- getClassname() - Method in class org.apache.commons.validator.ValidatorAction
-
Gets the class of the validator action.
- getConstants() - Method in class org.apache.commons.validator.ValidatorResources
-
Returns a Map of String constant names to their String values.
- getCountry() - Method in class org.apache.commons.validator.FormSet
-
Gets the equivalent of the country component of Locale
.
- getDependencyList() - Method in class org.apache.commons.validator.Field
-
Gets an unmodifiable List
of the dependencies in the same
order they were defined in parameter passed to the setDepends() method.
- getDependencyList() - Method in class org.apache.commons.validator.ValidatorAction
-
Returns the dependent validator names as an unmodifiable
List
.
- getDepends() - Method in class org.apache.commons.validator.Field
-
Gets the validation rules for this field as a comma separated list.
- getDepends() - Method in class org.apache.commons.validator.ValidatorAction
-
Gets the dependencies of the validator action as a comma separated list
of validator names.
- getExtends() - Method in class org.apache.commons.validator.Form
-
Gets the name/key of the parent set of validation rules.
- getField(String) - Method in class org.apache.commons.validator.Form
-
Returns the Field with the given name or null if this Form has no such
field.
- getField() - Method in class org.apache.commons.validator.ValidatorResult
-
Returns the Field that was validated.
- getFieldMap() - Method in class org.apache.commons.validator.Form
-
Returns a Map of String field keys to Field objects.
- getFieldOrder() - Method in class org.apache.commons.validator.Field
-
Gets the position of the Field
in the validation list.
- getFields() - Method in class org.apache.commons.validator.Form
-
A List
of Field
s is returned as an unmodifiable
List
.
- getFlags() - Method in class org.apache.commons.validator.util.Flags
-
Returns the current flags.
- getForm(String) - Method in class org.apache.commons.validator.FormSet
-
Retrieve a Form
based on the form name.
- getForm(Locale, String) - Method in class org.apache.commons.validator.ValidatorResources
-
Gets a Form
based on the name of the form and the
Locale
that most closely matches the Locale
passed in.
- getForm(String, String, String, String) - Method in class org.apache.commons.validator.ValidatorResources
-
Gets a Form
based on the name of the form and the
Locale
that most closely matches the Locale
passed in.
- getFormName() - Method in class org.apache.commons.validator.Validator
-
Gets the form name which is the key to a set of validation rules.
- getForms() - Method in class org.apache.commons.validator.FormSet
-
A Map
of Form
s is returned as an unmodifiable
Map
with the key based on the form name.
- getFormSet(String, String, String) - Method in class org.apache.commons.validator.ValidatorResources
-
Gets a FormSet
based on the language, country
and variant.
- getFormSets() - Method in class org.apache.commons.validator.ValidatorResources
-
Returns a Map of String locale keys to Lists of their FormSets.
- getIndexedListProperty() - Method in class org.apache.commons.validator.Field
-
Gets the indexed property name of the field.
- getIndexedProperty() - Method in class org.apache.commons.validator.Field
-
Gets the indexed property name of the field.
- getIndexedProperty(Object) - Method in class org.apache.commons.validator.Field
-
Returns an indexed property from the object we're validating.
- getInstance() - Static method in class org.apache.commons.validator.DateValidator
-
Returns the Singleton instance of this validator.
- getInstance() - Static method in class org.apache.commons.validator.EmailValidator
-
Returns the Singleton instance of this validator.
- getJavascript() - Method in class org.apache.commons.validator.ValidatorAction
-
Gets the Javascript equivalent of the java class and method
associated with this action.
- getJsFunctionName() - Method in class org.apache.commons.validator.ValidatorAction
-
Gets the Javascript function name.
- getJsType() - Method in class org.apache.commons.validator.Var
-
Gets the JavaScript type of the variable.
- getKey() - Method in class org.apache.commons.validator.Arg
-
Gets the key/value.
- getKey() - Method in class org.apache.commons.validator.Field
-
Gets a unique key based on the property and indexedProperty fields.
- getKey() - Method in class org.apache.commons.validator.Msg
-
Gets the key/value.
- getLanguage() - Method in class org.apache.commons.validator.FormSet
-
Gets the equivalent of the language component of Locale
.
- getMessage(String) - Method in class org.apache.commons.validator.Field
-
Retrieve a message object.
- getMessages() - Method in class org.apache.commons.validator.Field
-
The Field
's messages are returned as an
unmodifiable Map
.
- getMethod() - Method in class org.apache.commons.validator.ValidatorAction
-
Gets the name of method being called for the validator action.
- getMethodParams() - Method in class org.apache.commons.validator.ValidatorAction
-
Gets the method parameters for the method.
- getMsg(String) - Method in class org.apache.commons.validator.Field
-
Retrieve a message value.
- getMsg() - Method in class org.apache.commons.validator.ValidatorAction
-
Gets the message associated with the validator action.
- getMsgMap() - Method in class org.apache.commons.validator.Field
-
Returns a Map of String Msg names to Msg objects.
- getName() - Method in class org.apache.commons.validator.Arg
-
Gets the name of the dependency.
- getName() - Method in class org.apache.commons.validator.Form
-
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.
- getName() - Method in class org.apache.commons.validator.ValidatorAction
-
Gets the name of the validator action.
- getName() - Method in class org.apache.commons.validator.Var
-
Gets the name of the variable.
- getOnlyReturnErrors() - Method in class org.apache.commons.validator.Validator
-
Returns true if the Validator is only returning Fields that fail validation.
- getPage() - Method in class org.apache.commons.validator.Field
-
Gets the page value that the Field is associated with for
validation.
- getPage() - Method in class org.apache.commons.validator.Validator
-
Gets the page.
- getParameterValue(String) - Method in class org.apache.commons.validator.Validator
-
Returns the value of the specified parameter that will be used during the
processing of validations.
- getParameterValues(Map) - Method in class org.apache.commons.validator.ValidatorAction
-
Converts a List of parameter class names into their values contained in
the parameters Map.
- getParent(FormSet) - Method in class org.apache.commons.validator.ValidatorResources
-
Finds the given formSet's parent.
- getPosition() - Method in class org.apache.commons.validator.Arg
-
Argument's replacement position.
- getProperty() - Method in class org.apache.commons.validator.Field
-
Gets the property name of the field.
- getPropertyNames() - Method in class org.apache.commons.validator.ValidatorResults
-
Return the set of property names for which at least one message has
been recorded.
- getResult(String) - Method in class org.apache.commons.validator.ValidatorResult
-
Return the result of a validation.
- getResult() - Method in class org.apache.commons.validator.ValidatorResult.ResultStatus
-
Gets the result returned by a validation method.
- getResultValueMap() - Method in class org.apache.commons.validator.ValidatorResults
-
Get a Map
of any Object
s returned from
validation routines.
- getType() - Method in class org.apache.commons.validator.FormSet
-
Returns the type of FormSet
:GLOBAL_FORMSET
,
LANGUAGE_FORMSET
,COUNTRY_FORMSET
or VARIANT_FORMSET
.
- getUseContextClassLoader() - Method in class org.apache.commons.validator.Validator
-
Return the boolean as to whether the context classloader should be used.
- getValidationClassInstance() - Method in class org.apache.commons.validator.ValidatorAction
-
Return an instance of the validation class or null if the validation
method is static so does not require an instance to be executed.
- getValidatorAction(String) - Method in class org.apache.commons.validator.ValidatorResources
-
Get a ValidatorAction
based on it's name.
- getValidatorActions() - Method in class org.apache.commons.validator.ValidatorResources
-
Get an unmodifiable Map
of the ValidatorAction
s.
- getValidatorResult(String) - Method in class org.apache.commons.validator.ValidatorResults
-
Gets the ValidatorResult
associated
with the key passed in.
- getValue() - Method in class org.apache.commons.validator.Var
-
Gets the value of the variable.
- getValueAsString(Object, String) - Static method in class org.apache.commons.validator.util.ValidatorUtils
-
Convenience method for getting a value from a bean property as a
String
.
- getVar(String) - Method in class org.apache.commons.validator.Field
-
Retrieve a variable.
- getVariant() - Method in class org.apache.commons.validator.FormSet
-
Gets the equivalent of the variant component of Locale
.
- getVarMap() - Method in class org.apache.commons.validator.Field
-
Returns a Map of String Var names to Var objects.
- getVars() - Method in class org.apache.commons.validator.Field
-
The Field
's variables are returned as an
unmodifiable Map
.
- getVarValue(String) - Method in class org.apache.commons.validator.Field
-
Retrieve a variable's value.
- GLOBAL_FORMSET - Static variable in class org.apache.commons.validator.FormSet
-
This is the type of FormSet
s where no locale is specified.
- GROUP - Static variable in class org.apache.commons.validator.ISBNValidator
-
- indexedListProperty - Variable in class org.apache.commons.validator.Field
-
The Field's indexed list property name.
- indexedProperty - Variable in class org.apache.commons.validator.Field
-
The Field's indexed property name.
- inherit - Variable in class org.apache.commons.validator.Form
-
The name/key of the form which this form extends from.
- init() - Method in class org.apache.commons.validator.ValidatorAction
-
Initialize based on set.
- initDigester() - Method in class org.apache.commons.validator.ValidatorResources
-
Initialize the digester.
- instance - Static variable in class org.apache.commons.validator.DateValidator
-
Singleton instance of this class.
- instance - Static variable in class org.apache.commons.validator.EmailValidator
-
Singleton instance of this class.
- instance - Variable in class org.apache.commons.validator.ValidatorAction
-
If the java method matching the correct signature isn't static, the
instance is stored in the action.
- IP_DOMAIN_PATTERN - Static variable in class org.apache.commons.validator.EmailValidator
-
- IP_V4_DOMAIN_PATTERN - Static variable in class org.apache.commons.validator.UrlValidator
-
- isBlankOrNull(String) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if the field isn't null and length of the field is greater
than zero not including whitespace.
- ISBN_PATTERN - Static variable in class org.apache.commons.validator.ISBNValidator
-
ISBN consists of 4 groups of numbers separated by either dashes (-)
or spaces.
- ISBNValidator - Class in org.apache.commons.validator
-
A class for validating 10 digit ISBN codes.
- ISBNValidator() - Constructor for class org.apache.commons.validator.ISBNValidator
-
Default Constructor.
- isByte(String) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if the value can safely be converted to a byte primitive.
- isCreditCard(String) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if the field is a valid credit card number.
- isDate(String, Locale) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if the field is a valid date.
- isDate(String, String, boolean) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if the field is a valid date.
- isDependency(String) - Method in class org.apache.commons.validator.Field
-
Checks if the validator is listed as a dependency.
- isDependency(String) - Method in class org.apache.commons.validator.ValidatorAction
-
Checks whether or not the value passed in is in the depends field.
- isDouble(String) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if the value can safely be converted to a double primitive.
- isEmail(String) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if a field has a valid e-mail address.
- isEmpty() - Method in class org.apache.commons.validator.ValidatorResults
-
Return true
if there are no messages recorded
in this collection, or false
otherwise.
- isExtending() - Method in class org.apache.commons.validator.Form
-
Get extends flag.
- isFloat(String) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if the value can safely be converted to a float primitive.
- isFormatted(String) - Method in class org.apache.commons.validator.ISBNValidator
-
Returns true if the ISBN contains one of the separator characters space
or dash.
- isIndexed() - Method in class org.apache.commons.validator.Field
-
If there is a value specified for the indexedProperty field then
true
will be returned.
- isInRange(byte, byte, byte) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if a value is within a range (min & max specified
in the vars attribute).
- isInRange(int, int, int) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if a value is within a range (min & max specified
in the vars attribute).
- isInRange(float, float, float) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if a value is within a range (min & max specified
in the vars attribute).
- isInRange(short, short, short) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if a value is within a range (min & max specified
in the vars attribute).
- isInRange(long, long, long) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if a value is within a range (min & max specified
in the vars attribute).
- isInRange(double, double, double) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if a value is within a range (min & max specified
in the vars attribute).
- isInt(String) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if the value can safely be converted to a int primitive.
- isLong(String) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if the value can safely be converted to a long primitive.
- isMerged() - Method in class org.apache.commons.validator.FormSet
-
Has this formSet been merged?
- isOff(long) - Method in class org.apache.commons.validator.util.Flags
-
Tests whether the given flag is off.
- isOn(long) - Method in class org.apache.commons.validator.util.Flags
-
Tests whether the given flag is on.
- isProcessed() - Method in class org.apache.commons.validator.Form
-
Whether or not the this Form
was processed for replacing
variables in strings with their values.
- isProcessed() - Method in class org.apache.commons.validator.FormSet
-
Whether or not the this FormSet
was processed for replacing
variables in strings with their values.
- isResource() - Method in class org.apache.commons.validator.Arg
-
Tests whether or not the key is a resource key or literal value.
- isResource() - Method in class org.apache.commons.validator.Msg
-
Tests whether or not the key is a resource key or literal value.
- isResource() - Method in class org.apache.commons.validator.Var
-
Tests whether or not the value is a resource key or literal value.
- isShort(String) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if the value can safely be converted to a short primitive.
- isUrl(String) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if a field is a valid url address.
- isValid(String) - Method in class org.apache.commons.validator.CreditCardValidator
-
Checks if the field is a valid credit card number.
- isValid(String, String, boolean) - Method in class org.apache.commons.validator.DateValidator
-
Checks if the field is a valid date.
- isValid(String, Locale) - Method in class org.apache.commons.validator.DateValidator
-
Checks if the field is a valid date.
- isValid(String) - Method in class org.apache.commons.validator.EmailValidator
-
Checks if a field has a valid e-mail address.
- isValid(String) - Method in class org.apache.commons.validator.ISBNValidator
-
If the ISBN is formatted with space or dash separators its format is
validated.
- isValid(String) - Method in class org.apache.commons.validator.UrlValidator
-
Checks if a field has a valid url address.
- isValid(Object) - Method in class org.apache.commons.validator.ValidatorAction
-
If the result object is a Boolean
, it will return its
value.
- isValid(String) - Method in class org.apache.commons.validator.ValidatorResult
-
Indicate whether a specified validation passed.
- isValid() - Method in class org.apache.commons.validator.ValidatorResult.ResultStatus
-
Tests whether or not the validation passed.
- isValidAuthority(String) - Method in class org.apache.commons.validator.UrlValidator
-
Returns true if the authority is properly formatted.
- isValidDomain(String) - Method in class org.apache.commons.validator.EmailValidator
-
Returns true if the domain component of an email address is valid.
- isValidFragment(String) - Method in class org.apache.commons.validator.UrlValidator
-
Returns true if the given fragment is null or fragments are allowed.
- isValidIpAddress(Perl5Util) - Method in class org.apache.commons.validator.EmailValidator
-
Validates an IP address.
- isValidPath(String) - Method in class org.apache.commons.validator.UrlValidator
-
Returns true if the path is valid.
- isValidPattern(String) - Method in class org.apache.commons.validator.ISBNValidator
-
Returns true if the ISBN is formatted properly.
- isValidQuery(String) - Method in class org.apache.commons.validator.UrlValidator
-
Returns true if the query is null or it's a properly formatted query string.
- isValidScheme(String) - Method in class org.apache.commons.validator.UrlValidator
-
Validate scheme.
- isValidSymbolicDomain(String) - Method in class org.apache.commons.validator.EmailValidator
-
Validates a symbolic domain name.
- isValidUser(String) - Method in class org.apache.commons.validator.EmailValidator
-
Returns true if the user component of an email address is valid.
- MASTERCARD - Static variable in class org.apache.commons.validator.CreditCardValidator
-
Option specifying that Mastercard cards are allowed.
- matches(String) - Method in class org.apache.commons.validator.CreditCardValidator.Amex
-
- matches(String) - Method in interface org.apache.commons.validator.CreditCardValidator.CreditCardType
-
Returns true if the card number matches this type of credit
card.
- matches(String) - Method in class org.apache.commons.validator.CreditCardValidator.Discover
-
- matches(String) - Method in class org.apache.commons.validator.CreditCardValidator.Mastercard
-
- matches(String) - Method in class org.apache.commons.validator.CreditCardValidator.Visa
-
- matchRegexp(String, String) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if the value matches the regular expression.
- maxLength(String, int) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if the value's length is less than or equal to the max.
- maxValue(int, int) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if the value is less than or equal to the max.
- maxValue(long, long) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if the value is less than or equal to the max.
- maxValue(double, double) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if the value is less than or equal to the max.
- maxValue(float, float) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if the value is less than or equal to the max.
- merge(Form) - Method in class org.apache.commons.validator.Form
-
Merges the given form into this one.
- merge(FormSet) - Method in class org.apache.commons.validator.FormSet
-
Merges the given FormSet
into this one.
- merge(ValidatorResults) - Method in class org.apache.commons.validator.ValidatorResults
-
Merge another ValidatorResults into mine.
- merged - Variable in class org.apache.commons.validator.FormSet
-
Flag indicating if this formSet has been merged with its parent (higher
rank in Locale hierarchy).
- method - Variable in class org.apache.commons.validator.ValidatorAction
-
The full method name of the validation to be performed.
- methodParameterList - Variable in class org.apache.commons.validator.ValidatorAction
-
An internal List representation of all the validation method's
parameters defined in the methodParams String.
- methodParams - Variable in class org.apache.commons.validator.ValidatorAction
-
The method signature of the validation method.
- minLength(String, int) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if the value's length is greater than or equal to the min.
- minValue(int, int) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if the value is greater than or equal to the min.
- minValue(long, long) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if the value is greater than or equal to the min.
- minValue(double, double) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if the value is greater than or equal to the min.
- minValue(float, float) - Static method in class org.apache.commons.validator.GenericValidator
-
Checks if the value is greater than or equal to the min.
- Msg - Class in org.apache.commons.validator
-
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).
- Msg() - Constructor for class org.apache.commons.validator.Msg
-
- msg - Variable in class org.apache.commons.validator.ValidatorAction
-
The default error message associated with this action.
- SCHEME_CHARS - Static variable in class org.apache.commons.validator.UrlValidator
-
- SCHEME_PATTERN - Static variable in class org.apache.commons.validator.UrlValidator
-
Protocol (ie.
- SEP - Static variable in class org.apache.commons.validator.ISBNValidator
-
- setBundle(String) - Method in class org.apache.commons.validator.Arg
-
Sets the resource bundle name.
- setBundle(String) - Method in class org.apache.commons.validator.Msg
-
Sets the resource bundle name.
- setBundle(String) - Method in class org.apache.commons.validator.Var
-
Sets the resource bundle name.
- setClassLoader(ClassLoader) - Method in class org.apache.commons.validator.Validator
-
Set the class loader to be used for instantiating application objects
when required.
- setClassname(String) - Method in class org.apache.commons.validator.ValidatorAction
-
Sets the class of the validator action.
- setCountry(String) - Method in class org.apache.commons.validator.FormSet
-
Sets the equivalent of the country component of Locale
.
- setDepends(String) - Method in class org.apache.commons.validator.Field
-
Sets the validation rules for this field as a comma separated list.
- setDepends(String) - Method in class org.apache.commons.validator.ValidatorAction
-
Sets the dependencies of the validator action.
- setExtends(String) - Method in class org.apache.commons.validator.Form
-
Sets the name/key of the parent set of validation rules.
- setFieldName(String) - Method in class org.apache.commons.validator.Validator
-
Sets the name of the field to validate in a form (optional)
- setFieldOrder(int) - Method in class org.apache.commons.validator.Field
-
Sets the position of the Field
in the validation list.
- setFormName(String) - Method in class org.apache.commons.validator.Validator
-
Sets the form name which is the key to a set of validation rules.
- setIndexedListProperty(String) - Method in class org.apache.commons.validator.Field
-
Sets the indexed property name of the field.
- setIndexedProperty(String) - Method in class org.apache.commons.validator.Field
-
Sets the indexed property name of the field.
- setJavascript(String) - Method in class org.apache.commons.validator.ValidatorAction
-
Sets the Javascript equivalent of the java class and method
associated with this action.
- setJsFunction(String) - Method in class org.apache.commons.validator.ValidatorAction
-
Sets the fully qualified class path of the Javascript function.
- setJsFunctionName(String) - Method in class org.apache.commons.validator.ValidatorAction
-
Sets the Javascript function name.
- setJsType(String) - Method in class org.apache.commons.validator.Var
-
Sets the JavaScript type of the variable.
- setKey(String) - Method in class org.apache.commons.validator.Arg
-
Sets the key/value.
- setKey(String) - Method in class org.apache.commons.validator.Field
-
Sets a unique key for the field.
- setKey(String) - Method in class org.apache.commons.validator.Msg
-
Sets the key/value.
- setLanguage(String) - Method in class org.apache.commons.validator.FormSet
-
Sets the equivalent of the language component of Locale
.
- setMethod(String) - Method in class org.apache.commons.validator.ValidatorAction
-
Sets the name of method being called for the validator action.
- setMethodParams(String) - Method in class org.apache.commons.validator.ValidatorAction
-
Sets the method parameters for the method.
- setMsg(String) - Method in class org.apache.commons.validator.ValidatorAction
-
Sets the message associated with the validator action.
- setName(String) - Method in class org.apache.commons.validator.Arg
-
Sets the name of the dependency.
- setName(String) - Method in class org.apache.commons.validator.Form
-
Sets the name/key of the set of validation rules.
- setName(String) - Method in class org.apache.commons.validator.Msg
-
Sets the name of the dependency.
- setName(String) - Method in class org.apache.commons.validator.ValidatorAction
-
Sets the name of the validator action.
- setName(String) - Method in class org.apache.commons.validator.Var
-
Sets the name of the variable.
- setOnlyReturnErrors(boolean) - Method in class org.apache.commons.validator.Validator
-
Configures which Fields the Validator returns from the validate() method.
- setPage(int) - Method in class org.apache.commons.validator.Field
-
Sets the page value that the Field is associated with for
validation.
- setPage(int) - Method in class org.apache.commons.validator.Validator
-
Sets the page.
- setParameter(String, Object) - Method in class org.apache.commons.validator.Validator
-
Set a parameter of a pluggable validation method.
- setPosition(int) - Method in class org.apache.commons.validator.Arg
-
Set this argument's replacement position.
- setProperty(String) - Method in class org.apache.commons.validator.Field
-
Sets the property name of the field.
- setResource(boolean) - Method in class org.apache.commons.validator.Arg
-
Sets whether or not the key is a resource.
- setResource(boolean) - Method in class org.apache.commons.validator.Msg
-
Sets whether or not the key is a resource.
- setResource(boolean) - Method in class org.apache.commons.validator.Var
-
Sets whether or not the value is a resource.
- setResult(Object) - Method in class org.apache.commons.validator.ValidatorResult.ResultStatus
-
Sets the result returned by a validation method.
- setUseContextClassLoader(boolean) - Method in class org.apache.commons.validator.Validator
-
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.
- setValid(boolean) - Method in class org.apache.commons.validator.ValidatorResult.ResultStatus
-
Sets whether or not the validation passed.
- setValue(String) - Method in class org.apache.commons.validator.Var
-
Sets the value of the variable.
- setVariant(String) - Method in class org.apache.commons.validator.FormSet
-
Sets the equivalent of the variant component of Locale
.
- SPECIAL_CHARS - Static variable in class org.apache.commons.validator.EmailValidator
-
- SPECIAL_CHARS - Static variable in class org.apache.commons.validator.UrlValidator
-
- stripComments(String) - Method in class org.apache.commons.validator.EmailValidator
-
Recursively remove comments, and replace with a single space.
- sum(String) - Method in class org.apache.commons.validator.ISBNValidator
-
Returns the sum of the weighted ISBN characters.
- valid - Variable in class org.apache.commons.validator.ValidatorResult.ResultStatus
-
- VALID_CHARS - Static variable in class org.apache.commons.validator.EmailValidator
-
- VALID_CHARS - Static variable in class org.apache.commons.validator.UrlValidator
-
- validate(Map, Map) - Method in class org.apache.commons.validator.Field
-
Run the configured validations on this field.
- validate(Map, Map, int) - Method in class org.apache.commons.validator.Form
-
Validate all Fields in this Form on the given page and below.
- validate(Map, Map, int, String) - Method in class org.apache.commons.validator.Form
-
Validate all Fields in this Form on the given page and below.
- validate() - Method in class org.apache.commons.validator.Validator
-
Performs validations based on the configured resources.
- validateForRule(ValidatorAction, ValidatorResults, Map, Map, int) - Method in class org.apache.commons.validator.Field
-
Executes the given ValidatorAction and all ValidatorActions that it
depends on.
- validationClass - Variable in class org.apache.commons.validator.ValidatorAction
-
The Class object loaded from the classname.
- validationMethod - Variable in class org.apache.commons.validator.ValidatorAction
-
The Method object loaded from the method name.
- Validator - Class in org.apache.commons.validator
-
Validations are processed by the validate method.
- Validator(ValidatorResources) - Constructor for class org.apache.commons.validator.Validator
-
Construct a Validator
that will
use the ValidatorResources
passed in to retrieve pluggable validators
the different sets of validation rules.
- Validator(ValidatorResources, String) - Constructor for class org.apache.commons.validator.Validator
-
Construct a Validator
that will
use the ValidatorResources
passed in to retrieve pluggable validators
the different sets of validation rules.
- Validator(ValidatorResources, String, String) - Constructor for class org.apache.commons.validator.Validator
-
Construct a Validator
that will
use the ValidatorResources
passed in to retrieve pluggable validators
the different sets of validation rules.
- VALIDATOR_ACTION_PARAM - Static variable in class org.apache.commons.validator.Validator
-
Resources key the ValidatorAction
is stored under.
- VALIDATOR_PARAM - Static variable in class org.apache.commons.validator.Validator
-
Resources key the Validator
is stored under.
- VALIDATOR_RESULTS_PARAM - Static variable in class org.apache.commons.validator.Validator
-
Resources key the ValidatorResults
is stored under.
- ValidatorAction - Class in org.apache.commons.validator
-
Contains the information to dynamically create and run a validation
method.
- ValidatorAction() - Constructor for class org.apache.commons.validator.ValidatorAction
-
- ValidatorException - Exception in org.apache.commons.validator
-
The base exception for the Validator Framework.
- ValidatorException() - Constructor for exception org.apache.commons.validator.ValidatorException
-
Constructs an Exception with no specified detail message.
- ValidatorException(String) - Constructor for exception org.apache.commons.validator.ValidatorException
-
Constructs an Exception with the specified detail message.
- ValidatorResources - Class in org.apache.commons.validator
-
General purpose class for storing FormSet
objects based
on their associated Locale
.
- ValidatorResources() - Constructor for class org.apache.commons.validator.ValidatorResources
-
Create an empty ValidatorResources object.
- ValidatorResources(InputStream) - Constructor for class org.apache.commons.validator.ValidatorResources
-
Create a ValidatorResources object from an InputStream.
- ValidatorResources(InputStream[]) - Constructor for class org.apache.commons.validator.ValidatorResources
-
Create a ValidatorResources object from an InputStream.
- ValidatorResources(String) - Constructor for class org.apache.commons.validator.ValidatorResources
-
Create a ValidatorResources object from an uri
- ValidatorResources(String[]) - Constructor for class org.apache.commons.validator.ValidatorResources
-
Create a ValidatorResources object from several uris
- ValidatorResult - Class in org.apache.commons.validator
-
This contains the results of a set of validation rules processed
on a JavaBean.
- ValidatorResult(Field) - Constructor for class org.apache.commons.validator.ValidatorResult
-
Constructs a ValidatorResult
with the associated field being
validated.
- ValidatorResult.ResultStatus - Class in org.apache.commons.validator
-
Contains the status of the validation.
- ValidatorResult.ResultStatus(boolean, Object) - Constructor for class org.apache.commons.validator.ValidatorResult.ResultStatus
-
Construct a Result status.
- ValidatorResults - Class in org.apache.commons.validator
-
This contains the results of a set of validation rules processed
on a JavaBean.
- ValidatorResults() - Constructor for class org.apache.commons.validator.ValidatorResults
-
- ValidatorUtils - Class in org.apache.commons.validator.util
-
Basic utility methods.
- ValidatorUtils() - Constructor for class org.apache.commons.validator.util.ValidatorUtils
-
- value - Variable in class org.apache.commons.validator.Var
-
The key or value the variable.
- Var - Class in org.apache.commons.validator
-
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
-
Default Constructor.
- Var(String, String, String) - Constructor for class org.apache.commons.validator.Var
-
Constructs a variable with a specified name, value
and Javascript type.
- variant - Variable in class org.apache.commons.validator.FormSet
-
Variant component of Locale
(optional).
- VARIANT_FORMSET - Static variable in class org.apache.commons.validator.FormSet
-
This is the type of FormSet
s where full locale has been set.
- VISA - Static variable in class org.apache.commons.validator.CreditCardValidator
-
Option specifying that Visa cards are allowed.