Java Doc for BeanValidatorForm.java in  » Web-Framework » struts-1.3.8 » org » apache » struts » 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 » Web Framework » struts 1.3.8 » org.apache.struts.validator 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.struts.validator.ValidatorForm
   org.apache.struts.validator.BeanValidatorForm

All known Subclasses:   org.apache.struts.validator.LazyValidatorForm,
BeanValidatorForm
public class BeanValidatorForm extends ValidatorForm implements DynaBean,Serializable(Code)

Struts validator ActionForm backed by either a DynaBean or POJO JavaBean.

Passing a POJO JavaBean to the constructor will automatically create an associated WrapDynaBean. One use for this would be to migrate view objects from an existing system which, for the usual reasons, can't be changed to extend .

This form is based on the standard struts ValidatorForm for use with the Validator framework and validates either using the name from the Struts ActionMapping or the ActionMapping's path depending on whether pathValidation is true or false.

Note: WrapDynaBean is NOT serializable. If you use this class with a WrapDynaBean (as described above), you should not store your form in session scope.



Field Summary
protected  DynaBeandynaBean
     The DynaBean that this ActionForm is backed by.
protected static  Loglogger
    
protected  booleanpathValidation
     Indicates whether the ActionMapping's path should be used for the validation key.

Constructor Summary
public  BeanValidatorForm(Object bean)
     Construct a new BeanValidatorForm with the specified bean.

Method Summary
public  booleancontains(String name, String key)
    
public  Objectget(String name)
     Return the value of a simple property with the specified name.
public  Objectget(String name, int index)
     Return the value of an indexed property with the specified name.
public  Objectget(String name, String key)
     Return the value of a mapped property with the specified name, or null if there is no value for the specified key.
public  DynaBeangetDynaBean()
    
public  DynaClassgetDynaClass()
     Return the DynaClass instance that describes the set of properties available for this DynaBean.
public  ObjectgetInstance()
    

Return the Bean that this ActionForm is backed by.

If the DynaBean is a WrapDynaBean type then this method returns the 'Wrapped' POJO bean associated with it.

public  StringgetStrutsConfigFormName()
     Return name used to identify the ActionForm in the struts-config.xml.
public  StringgetValidationKey(ActionMapping mapping, HttpServletRequest request)
    
public  voidinitialize(FormBeanConfig formBeanConfig)
    
protected  booleanisPathValidation()
    
public  voidremove(String name, String key)
     Remove any existing value for the specified key on the specified mapped property.
public  voidset(String name, Object value)
     Set the value of a simple property with the specified name.
public  voidset(String name, int index, Object value)
     Set the value of an indexed property with the specified name.
public  voidset(String name, String key, Object value)
     Set the value of a mapped property with the specified name.
protected  voidsetPathValidation(boolean pathValidation)
    
public  intsize(String name)
    

Field Detail
dynaBean
protected DynaBean dynaBean(Code)
The DynaBean that this ActionForm is backed by.



logger
protected static Log logger(Code)
Commons Logging



pathValidation
protected boolean pathValidation(Code)
Indicates whether the ActionMapping's path should be used for the validation key.




Constructor Detail
BeanValidatorForm
public BeanValidatorForm(Object bean)(Code)
Construct a new BeanValidatorForm with the specified bean.




Method Detail
contains
public boolean contains(String name, String key)(Code)
Does the specified mapped property contain a value for the specified key value?
Parameters:
  name - Name of the property to check
Parameters:
  key - Name of the key to check



get
public Object get(String name)(Code)
Return the value of a simple property with the specified name.
Parameters:
  name - Name of the property whose value is to be retrieved



get
public Object get(String name, int index)(Code)
Return the value of an indexed property with the specified name.
Parameters:
  name - Name of the property whose value is to be retrieved
Parameters:
  index - Index of the value to be retrieved



get
public Object get(String name, String key)(Code)
Return the value of a mapped property with the specified name, or null if there is no value for the specified key.
Parameters:
  name - Name of the property whose value is to be retrieved
Parameters:
  key - Key of the value to be retrieved



getDynaBean
public DynaBean getDynaBean()(Code)

Return the DynaBean that this ActionForm is backed by.




getDynaClass
public DynaClass getDynaClass()(Code)
Return the DynaClass instance that describes the set of properties available for this DynaBean.



getInstance
public Object getInstance()(Code)

Return the Bean that this ActionForm is backed by.

If the DynaBean is a WrapDynaBean type then this method returns the 'Wrapped' POJO bean associated with it. If you require the actual WrapDynaBean then use the getDynaBean() method.




getStrutsConfigFormName
public String getStrutsConfigFormName()(Code)
Return name used to identify the ActionForm in the struts-config.xml.
since:
   Struts 1.3.6



getValidationKey
public String getValidationKey(ActionMapping mapping, HttpServletRequest request)(Code)
Returns the Validation key
Parameters:
  mapping - The mapping used to select this instance
Parameters:
  request - The servlet request we are processing validation key to use



initialize
public void initialize(FormBeanConfig formBeanConfig)(Code)

Perform intialization of the ActionForm.

This method is called when the form is created.


since:
   Struts 1.3.6



isPathValidation
protected boolean isPathValidation()(Code)

Indicates whether this form should validate based on the ActionMapping's path.




remove
public void remove(String name, String key)(Code)
Remove any existing value for the specified key on the specified mapped property.
Parameters:
  name - Name of the property for which a value is to be removed
Parameters:
  key - Key of the value to be removed



set
public void set(String name, Object value)(Code)
Set the value of a simple property with the specified name.
Parameters:
  name - Name of the property whose value is to be set
Parameters:
  value - Value to which this property is to be set



set
public void set(String name, int index, Object value)(Code)
Set the value of an indexed property with the specified name.
Parameters:
  name - Name of the property whose value is to be set
Parameters:
  index - Index of the property to be set
Parameters:
  value - Value to which this property is to be set



set
public void set(String name, String key, Object value)(Code)
Set the value of a mapped property with the specified name.
Parameters:
  name - Name of the property whose value is to be set
Parameters:
  key - Key of the property to be set
Parameters:
  value - Value to which this property is to be set



setPathValidation
protected void setPathValidation(boolean pathValidation)(Code)

Set whether this form should validate based on the ActionMapping's path.




size
public int size(String name)(Code)

Return the size of an indexed or mapped property.




Fields inherited from org.apache.struts.validator.ValidatorForm
protected int page(Code)(Java Doc)
protected ValidatorResults validatorResults(Code)(Java Doc)

Methods inherited from org.apache.struts.validator.ValidatorForm
public int getPage()(Code)(Java Doc)
public Map getResultValueMap()(Code)(Java Doc)
public String getValidationKey(ActionMapping mapping, HttpServletRequest request)(Code)(Java Doc)
public ValidatorResults getValidatorResults()(Code)(Java Doc)
public void reset(ActionMapping mapping, HttpServletRequest request)(Code)(Java Doc)
public void setPage(int page)(Code)(Java Doc)
public void setValidatorResults(ValidatorResults validatorResults)(Code)(Java Doc)
public ActionErrors validate(ActionMapping mapping, HttpServletRequest request)(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.