Serialized Form


Package org.apache.commons.validator

Class org.apache.commons.validator.Arg extends Object implements Serializable

Serialized Fields

bundle

String bundle
The resource bundle name that this Arg's key should be resolved in (optional).

Since:
Validator 1.1

key

String key
The key or value of the argument.


name

String name
The name dependency that this argument goes with (optional).


position

int position
This argument's position in the message. Set postion=0 to make a replacement in this string: "some msg {0}".

Since:
Validator 1.1

resource

boolean resource
Whether or not the key is a message resource (optional). Defaults to true. If it is 'true', the value will try to be resolved as a message resource.

Class org.apache.commons.validator.Constant extends Object implements Serializable

Serialized Fields

name

String name
Deprecated. 
The name of the constant.


value

String value
Deprecated. 
The name of the constant.

Class org.apache.commons.validator.Field extends Object implements Serializable

Serialized Fields

property

String property

indexedProperty

String indexedProperty

indexedListProperty

String indexedListProperty

key

String key

depends

String depends
A comma separated list of validator's this field depends on.


page

int page

fieldOrder

int fieldOrder

hDependencies

org.apache.commons.collections.FastHashMap hDependencies
Deprecated. This is no longer used.


dependencyList

List dependencyList
Internal representation of this.depends String as a List. This List gets updated whenever setDepends() gets called. This List is synchronized so a call to setDepends() (which clears the List) won't interfere with a call to isDependency().


hVars

org.apache.commons.collections.FastHashMap hVars

hMsgs

org.apache.commons.collections.FastHashMap hMsgs

args

Map[] args
Holds Maps of arguments. args[0] returns the Map for the first replacement argument. Start with a 0 length array so that it will only grow to the size of the highest argument position.

Since:
Validator 1.1

hArg0

org.apache.commons.collections.FastHashMap hArg0
Deprecated. This variable is no longer used, use args instead.


hArg1

org.apache.commons.collections.FastHashMap hArg1
Deprecated. This variable is no longer used, use args instead.


hArg2

org.apache.commons.collections.FastHashMap hArg2
Deprecated. This variable is no longer used, use args instead.


hArg3

org.apache.commons.collections.FastHashMap hArg3
Deprecated. This variable is no longer used, use args instead.

Class org.apache.commons.validator.Form extends Object implements Serializable

Serialized Fields

name

String name
The name/key the set of validation rules is stored under.


lFields

List lFields
List of Fields. Used to maintain the order they were added in although individual Fields can be retrieved using Map of Fields.


hFields

org.apache.commons.collections.FastHashMap hFields
Map of Fields keyed on their property value.

Class org.apache.commons.validator.FormSet extends Object implements Serializable

Serialized Fields

processed

boolean processed
Whether or not the this FormSet was processed for replacing variables in strings with their values.


language

String language
Language component of Locale (required).


country

String country
Country component of Locale (optional).


variant

String variant
Variant component of Locale (optional).


forms

Map forms
A Map of Forms using the name field of the Form as the key.


constants

Map constants
A Map of Constants using the name field of the Constant as the key.

Class org.apache.commons.validator.GenericTypeValidator extends Object implements Serializable

Class org.apache.commons.validator.GenericValidator extends Object implements Serializable

Class org.apache.commons.validator.Msg extends Object implements Serializable

Serialized Fields

bundle

String bundle
The resource bundle name that this Msg's key should be resolved in (optional).

Since:
Validator 1.1

key

String key
The key or value of the argument.


name

String name
The name dependency that this argument goes with (optional).


resource

boolean resource
Whether or not the key is a message resource (optional). Defaults to true. If it is 'true', the value will try to be resolved as a message resource.

Since:
Validator 1.1.4

Class org.apache.commons.validator.UrlValidator extends Object implements Serializable

Serialized Fields

options

Flags options
Holds the set of current validation options.


allowedSchemes

Set allowedSchemes
The set of schemes that are allowed to be in a URL.


defaultSchemes

String[] defaultSchemes
If no schemes are provided, default to this set.

Class org.apache.commons.validator.Validator extends Object implements Serializable

Serialized Fields

resources

ValidatorResources resources

formName

String formName

parameters

Map parameters
Maps validation method parameter class names to the objects to be passed into the method.


hResources

HashMap hResources
Deprecated. Use parameters instead.


page

int page
The current page number to validate.


classLoader

ClassLoader classLoader
The class loader to use for instantiating application objects. If not specified, the context class loader, or the class loader used to load Digester itself, is used, based on the value of the useContextClassLoader variable.


useContextClassLoader

boolean useContextClassLoader
Whether or not to use the Context ClassLoader when loading classes for instantiating new objects. Default is false.


onlyReturnErrors

boolean onlyReturnErrors
Set this to true to not return Fields that pass validation. Only return failures.

Class org.apache.commons.validator.ValidatorAction extends Object implements Serializable

Serialized Fields

name

String name
The name of the validation.


classname

String classname
The full class name of the class containing the validation method associated with this action.


validationClass

Class validationClass
The Class object loaded from the classname.


method

String method
The full method name of the validation to be performed. The method must be thread safe.


validationMethod

Method validationMethod
The Method object loaded from the method name.


methodParams

String methodParams

The method signature of the validation method. This should be a comma delimited list of the full class names of each parameter in the correct order that the method takes.

Note: java.lang.Object is reserved for the JavaBean that is being validated. The ValidatorAction and Field that are associated with a field's validation will automatically be populated if they are specified in the method signature.


parameterClasses

Class[] parameterClasses
The Class objects for each entry in methodParameterList.


depends

String depends
The other ValidatorActions that this one depends on. If any errors occur in an action that this one depends on, this action will not be processsed.


msg

String msg
The default error message associated with this action.


jsFunctionName

String jsFunctionName
An optional field to contain the name to be used if JavaScript is generated.


jsFunction

String jsFunction
An optional field to contain the class path to be used to retrieve the JavaScript function.


javascript

String javascript
An optional field to containing a JavaScript representation of the java method assocated with this action.


instance

Object instance
If the java method matching the correct signature isn't static, the instance is stored in the action. This assumes the method is thread safe.


dependencyList

List dependencyList
An internal List representation of the other ValidatorActions this one depends on (if any). This List gets updated whenever setDepends() gets called. This is synchronized so a call to setDepends() (which clears the List) won't interfere with a call to isDependency().


methodParameterList

List methodParameterList
An internal List representation of all the validation method's parameters defined in the methodParams String.

Class org.apache.commons.validator.ValidatorException extends Exception implements Serializable

Class org.apache.commons.validator.ValidatorResources extends Object implements Serializable

Serialized Fields

hFormSets

org.apache.commons.collections.FastHashMap hFormSets
FastHashMap of FormSets stored under a Locale key.


hConstants

org.apache.commons.collections.FastHashMap hConstants
FastHashMap of global constant values with the name of the constant as the key.


hActions

org.apache.commons.collections.FastHashMap hActions
FastHashMap of ValidatorActions with the name of the ValidatorAction as the key.

Class org.apache.commons.validator.ValidatorResult extends Object implements Serializable

Serialized Fields

hAction

Map hAction
Map of results. The key is the name of the ValidatorAction and the value is whether or not this field passed or not.


field

Field field
Field being validated. TODO This variable is not used. Need to investigate removing it.

Class org.apache.commons.validator.ValidatorResult.ResultStatus extends Object implements Serializable

Serialized Fields

valid

boolean valid

result

Object result

Class org.apache.commons.validator.ValidatorResults extends Object implements Serializable

Serialized Fields

hResults

Map hResults
Map of validation results.

Class org.apache.commons.validator.Var extends Object implements Serializable

Serialized Fields

name

String name
The name of the variable.


value

String value
The name of the value.


jsType

String jsType
The optional JavaScript type of the variable.


Package org.apache.commons.validator.util

Class org.apache.commons.validator.util.Flags extends Object implements Serializable

Serialized Fields

flags

long flags
Represents the current flag state.



Copyright © 2002-2004 The Apache Software Foundation. All Rights Reserved.