Method Summary |
|
public void | addField(Field f) Add a Field to the Form . |
public boolean | containsField(String fieldName) Returns true if this Form contains a Field with the given name. |
public String | getExtends() Gets the name/key of the parent set of validation rules. |
public Field | getField(String fieldName) Returns the Field with the given name or null if this Form has no such
field. |
protected Map | getFieldMap() Returns a Map of String field keys to Field objects. |
public List | getFields() A List of Field s is returned as an unmodifiable
List . |
public String | getName() Gets the name/key of the set of validation rules. |
public boolean | isExtending() Get extends flag. |
public boolean | isProcessed() Whether or not the this Form was processed for replacing
variables in strings with their values. |
protected void | merge(Form depends) Merges the given form into this one. |
protected void | process(Map globalConstants, Map constants, Map forms) Processes all of the Form 's Field s. |
public void | setExtends(String inherit) Sets the name/key of the parent set of validation rules. |
public void | setName(String name) Sets the name/key of the set of validation rules. |
public String | toString() Returns a string representation of the object. |
ValidatorResults | validate(Map params, Map actions, int page) Validate all Fields in this Form on the given page and below.
Parameters: params - A Map of parameter class names to parametervalues to pass into validation methods. Parameters: actions - A Map of validator names to ValidatorActionobjects. Parameters: page - Fields on pages higher than this will not bevalidated. |
ValidatorResults | validate(Map params, Map actions, int page, String fieldName) Validate all Fields in this Form on the given page and below.
Parameters: params - A Map of parameter class names to parametervalues to pass into validation methods. Parameters: actions - A Map of validator names to ValidatorActionobjects. Parameters: page - Fields on pages higher than this will not bevalidated. |