|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.validator.Form
This contains a set of validation rules for a
form/JavaBean. The information is contained in a
list of Field
objects.
Field Summary | |
---|---|
protected org.apache.commons.collections.FastHashMap |
hFields
Map of Field s keyed on their property value. |
protected java.util.List |
lFields
List of Field s. |
protected java.lang.String |
name
The name/key the set of validation rules is stored under. |
Constructor Summary | |
---|---|
Form()
|
Method Summary | |
---|---|
void |
addField(Field f)
Add a Field to the Form . |
java.util.Map |
getFieldMap()
A Map of Field s is returned as an
unmodifiable List . |
java.util.List |
getFields()
A List of Field s is returned as an
unmodifiable List . |
java.lang.String |
getName()
Gets the name/key of the set of validation rules. |
void |
process(java.util.Map globalConstants,
java.util.Map constants)
Processes all of the Form 's Field s. |
void |
setName(java.lang.String name)
Sets the name/key of the set of validation rules. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String name
protected java.util.List lFields
Field
s. Used to maintain
the order they were added in although individual
Field
s can be retrieved using
Map
of Field
s.
protected org.apache.commons.collections.FastHashMap hFields
Field
s keyed on their property value.
Constructor Detail |
public Form()
Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
public void addField(Field f)
Field
to the Form
.
public java.util.List getFields()
List
of Field
s is returned as an
unmodifiable List
.
public java.util.Map getFieldMap()
Map
of Field
s is returned as an
unmodifiable List
.
public void process(java.util.Map globalConstants, java.util.Map constants)
Form
's Field
s.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |