Java Doc for Form.java in  » Library » Apache-commons-validator-1.3.1-src » org » apache » commons » validator » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Library » Apache commons validator 1.3.1 src » org.apache.commons.validator 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.commons.validator.Form

Form
public class Form implements Serializable(Code)

This contains a set of validation rules for a form/JavaBean. The information is contained in a list of Field objects. Instances of this class are configured with a <form> xml element.

The use of FastHashMap is deprecated and will be replaced in a future release.


version:
   $Revision: 478334 $ $Date: 2006-11-22 21:31:54 +0000 (Wed, 22 Nov 2006) $


Field Summary
protected  FastHashMaphFields
     Map of Fields keyed on their property value.
protected  Stringinherit
     The name/key of the form which this form extends from.
protected  ListlFields
     List of Fields.
protected  Stringname
     The name/key the set of validation rules is stored under.


Method Summary
public  voidaddField(Field f)
     Add a Field to the Form.
public  booleancontainsField(String fieldName)
     Returns true if this Form contains a Field with the given name.
public  StringgetExtends()
     Gets the name/key of the parent set of validation rules.
public  FieldgetField(String fieldName)
     Returns the Field with the given name or null if this Form has no such field.
protected  MapgetFieldMap()
     Returns a Map of String field keys to Field objects.
public  ListgetFields()
     A List of Fields is returned as an unmodifiable List.
public  StringgetName()
     Gets the name/key of the set of validation rules.
public  booleanisExtending()
     Get extends flag.
public  booleanisProcessed()
     Whether or not the this Form was processed for replacing variables in strings with their values.
protected  voidmerge(Form depends)
     Merges the given form into this one.
protected  voidprocess(Map globalConstants, Map constants, Map forms)
     Processes all of the Form's Fields.
public  voidsetExtends(String inherit)
     Sets the name/key of the parent set of validation rules.
public  voidsetName(String name)
     Sets the name/key of the set of validation rules.
public  StringtoString()
     Returns a string representation of the object.
 ValidatorResultsvalidate(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.
 ValidatorResultsvalidate(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.

Field Detail
hFields
protected FastHashMap hFields(Code)
Map of Fields keyed on their property value.



inherit
protected String inherit(Code)
The name/key of the form which this form extends from.
since:
   Validator 1.2.0



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



name
protected String name(Code)
The name/key the set of validation rules is stored under.





Method Detail
addField
public void addField(Field f)(Code)
Add a Field to the Form.
Parameters:
  f - The field



containsField
public boolean containsField(String fieldName)(Code)
Returns true if this Form contains a Field with the given name.
Parameters:
  fieldName - The field name True if this form contains the field by the given name
since:
   Validator 1.1



getExtends
public String getExtends()(Code)
Gets the name/key of the parent set of validation rules. The extends value
since:
   Validator 1.2.0



getField
public Field getField(String fieldName)(Code)
Returns the Field with the given name or null if this Form has no such field.
Parameters:
  fieldName - The field name The field value
since:
   Validator 1.1



getFieldMap
protected Map getFieldMap()(Code)
Returns a Map of String field keys to Field objects. The fieldMap value
since:
   Validator 1.2.0



getFields
public List getFields()(Code)
A List of Fields is returned as an unmodifiable List. The fields value



getName
public String getName()(Code)
Gets the name/key of the set of validation rules. The name value



isExtending
public boolean isExtending()(Code)
Get extends flag. The extending value
since:
   Validator 1.2.0



isProcessed
public boolean isProcessed()(Code)
Whether or not the this Form was processed for replacing variables in strings with their values. The processed value
since:
   Validator 1.2.0



merge
protected void merge(Form depends)(Code)
Merges the given form into this one. For any field in depends not present in this form, include it. depends has precedence in the way the fields are ordered.
Parameters:
  depends - the form we want to merge
since:
   Validator 1.2.0



process
protected void process(Map globalConstants, Map constants, Map forms)(Code)
Processes all of the Form's Fields.
Parameters:
  globalConstants - A map of global constants
Parameters:
  constants - Local constants
Parameters:
  forms - Map of forms
since:
   Validator 1.2.0



setExtends
public void setExtends(String inherit)(Code)
Sets the name/key of the parent set of validation rules.
Parameters:
  inherit - The new extends value
since:
   Validator 1.2.0



setName
public void setName(String name)(Code)
Sets the name/key of the set of validation rules.
Parameters:
  name - The new name value



toString
public String toString()(Code)
Returns a string representation of the object. string representation



validate
ValidatorResults validate(Map params, Map actions, int page) throws ValidatorException(Code)
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. A ValidatorResults object containing allvalidation messages.
throws:
  ValidatorException -



validate
ValidatorResults validate(Map params, Map actions, int page, String fieldName) throws ValidatorException(Code)
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. A ValidatorResults object containing allvalidation messages.
throws:
  ValidatorException -
since:
   1.2.0



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.