Package | Description |
---|---|
org.apache.commons.validator |
The Validator package provides validation for JavaBeans based on an xml file.
|
Modifier and Type | Field and Description |
---|---|
protected Field |
ValidatorResult.field
Field being validated. |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<Field> |
Form.lFields
List of
Field s. |
Modifier and Type | Method and Description |
---|---|
Field |
ValidatorResult.getField()
Returns the Field that was validated.
|
Field |
Form.getField(java.lang.String fieldName)
Returns the Field with the given name or null if this Form has no such
field.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,Field> |
Form.getFieldMap()
Returns a Map of String field keys to Field objects.
|
java.util.List<Field> |
Form.getFields()
A
List of Field s is returned as an unmodifiable
List . |
Modifier and Type | Method and Description |
---|---|
void |
ValidatorResults.add(Field field,
java.lang.String validatorName,
boolean result)
Add a the result of a validator action.
|
void |
ValidatorResults.add(Field field,
java.lang.String validatorName,
boolean result,
java.lang.Object value)
Add a the result of a validator action.
|
void |
Form.addField(Field f)
Add a
Field to the Form . |
(package private) boolean |
ValidatorAction.executeValidationMethod(Field field,
java.util.Map<java.lang.String,java.lang.Object> params,
ValidatorResults results,
int pos)
Dynamically runs the validation method for this validator and returns
true if the data is valid.
|
private void |
ValidatorAction.handleIndexedField(Field field,
int pos,
java.lang.Object[] paramValues)
Modifies the paramValue array with indexed fields.
|
Constructor and Description |
---|
ValidatorResult(Field field)
Constructs a
ValidatorResult with the associated field being
validated. |