| 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 |
beanClass | protected transient Class beanClass(Code) | | The DynaActionForm implementation Class
which we will use to create new bean instances.
|
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.
|
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) |
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 DynaProperty s 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) |
toString | public String toString()(Code) | | Render a String representation of this object.
The string representation of this instance. |
|
|