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


java.lang.Object
   org.apache.struts.action.DynaActionFormClass

DynaActionFormClass
public class DynaActionFormClass implements DynaClass,Serializable(Code)

Implementation of DynaClass for DynaActionForm classes that allow developers to define ActionForms without having to individually code all of the classes. NOTE - This class is only used in the internal implementation of dynamic action form beans. Application developers never need to consult this documentation.


version:
   $Rev: 471754 $ $Date: 2006-01-17 07:26:20 -0500 (Tue, 17 Jan 2006)
version:
   $
since:
   Struts 1.1


Field Summary
protected transient  ClassbeanClass
    
protected  FormBeanConfigconfig
    
protected  Stringname
    
protected  DynaProperty[]properties
    
protected  HashMappropertiesMap
    

The set of dynamic properties that are part of this DynaClass, keyed by the property name.


Constructor Summary
public  DynaActionFormClass(FormBeanConfig config)
    

Construct a new DynaActionFormClass for the specified form bean configuration.


Method Summary
public static  DynaActionFormClasscreateDynaActionFormClass(FormBeanConfig config)
     Return the DynaActionFormClass instance for the specified form bean configuration instance.
Parameters:
  config - The config for which the class should be created.
protected  ClassgetBeanClass()
    
public  DynaProperty[]getDynaProperties()
    

Return an array of DynaPropertys for the properties currently defined in this DynaClass.

public  DynaPropertygetDynaProperty(String name)
    
public  StringgetName()
    

Return the name of this DynaClass (analogous to the getName() method of java.lang.Class, which allows the same DynaClass implementation class to support different dynamic classes, with different sets of properties.

protected  voidintrospect(FormBeanConfig config)
    
public  DynaBeannewInstance()
    

Instantiate and return a new DynaActionForm instance, associated with this DynaActionFormClass.

public  StringtoString()
    

Field Detail
beanClass
protected transient Class beanClass(Code)

The DynaActionForm implementation Class which we will use to create new bean instances.




config
protected FormBeanConfig config(Code)

The form bean configuration information for this class.




name
protected String name(Code)

The "dynamic class name" for this DynaClass.




properties
protected DynaProperty[] properties(Code)

The set of dynamic properties that are part of this DynaClass.




propertiesMap
protected HashMap propertiesMap(Code)

The set of dynamic properties that are part of this DynaClass, keyed by the property name. Individual descriptor instances will be the same instances as those in the properties list.





Constructor Detail
DynaActionFormClass
public DynaActionFormClass(FormBeanConfig config)(Code)

Construct a new DynaActionFormClass for the specified form bean configuration. This constructor is private; DynaActionFormClass instances will be created as needed via calls to the static createDynaActionFormClass() method.


Parameters:
  config - The FormBeanConfig instance describing the properties ofthe bean to be created
throws:
  IllegalArgumentException - if the bean implementation classspecified in the configuration is notDynaActionForm (or a subclass ofDynaActionForm)




Method Detail
createDynaActionFormClass
public static DynaActionFormClass createDynaActionFormClass(FormBeanConfig config)(Code)
Return the DynaActionFormClass instance for the specified form bean configuration instance.
Parameters:
  config - The config for which the class should be created. The instance for the specified form bean config.



getBeanClass
protected Class getBeanClass()(Code)

Return the implementation class we are using to construct new instances, re-introspecting our FormBeanConfig if necessary (that is, after being deserialized, since beanClass is marked transient).

The implementation class used to construct new instances.



getDynaProperties
public DynaProperty[] getDynaProperties()(Code)

Return an array of DynaPropertys for the properties currently defined in this DynaClass. If no properties are defined, a zero-length array will be returned.

An array of property instances for this class.



getDynaProperty
public DynaProperty getDynaProperty(String name)(Code)

Return a property descriptor for the specified property, if it exists; otherwise, return null.


Parameters:
  name - Name of the dynamic property for which a descriptor isrequested A property descriptor for the specified property.
throws:
  IllegalArgumentException - if no property name is specified



getName
public String getName()(Code)

Return the name of this DynaClass (analogous to the getName() method of java.lang.Class, which allows the same DynaClass implementation class to support different dynamic classes, with different sets of properties. The name of this DynaClass.




introspect
protected void introspect(FormBeanConfig config)(Code)

Introspect our form bean configuration to identify the supported properties.


Parameters:
  config - The FormBeanConfig instance describing the properties ofthe bean to be created
throws:
  IllegalArgumentException - if the bean implementation classspecified in the configuration is notDynaActionForm (or a subclass ofDynaActionForm)



newInstance
public DynaBean newInstance() throws IllegalAccessException, InstantiationException(Code)

Instantiate and return a new DynaActionForm instance, associated with this DynaActionFormClass. The properties of the returned DynaActionForm will have been initialized to the default values specified in the form bean configuration information.

A new DynaActionForm instance.
throws:
  IllegalAccessException - if the Class or the appropriateconstructor is not accessible
throws:
  InstantiationException - if this Class represents an abstractclass, an array class, a primitive type,or void; or if instantiation fails forsome other reason



toString
public String toString()(Code)

Render a String representation of this object.

The string representation of this instance.



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.