Save This Page
Home » Struts-1.3.10 » org.apache.struts » config » [javadoc | source]
org.apache.struts.config
public class: FormBeanConfig [javadoc | source]
java.lang.Object
   org.apache.struts.config.FormBeanConfig

All Implemented Interfaces:
    Serializable

A JavaBean representing the configuration information of a <form-bean> element in a Struts configuration file.

Field Summary
protected  boolean configured    Has this component been completely configured? 
protected  HashMap formProperties    The set of FormProperty elements defining dynamic form properties for this form bean, keyed by property name. 
protected  String lock   

The lockable object we can synchronize on when creating DynaActionFormClass.

 
protected transient  DynaActionFormClass dynaActionFormClass    The DynaActionFormClass associated with a DynaActionForm. 
protected  boolean dynamic    Is the form bean class an instance of DynaActionForm with dynamic properties? 
protected  String name    The unique identifier of this form bean, which is used to reference this bean in ActionMapping instances as well as for the name of the request or session attribute under which the corresponding form bean instance is created or accessed. 
protected  String type    The fully qualified Java class name of the implementation class to be used or generated. 
protected  boolean restricted    Is this DynaClass currently restricted (for DynaBeans with a MutableDynaClass). 
Method from org.apache.struts.config.FormBeanConfig Summary:
addFormPropertyConfig,   createActionForm,   findFormPropertyConfig,   findFormPropertyConfigs,   formBeanClass,   freeze,   getDynaActionFormClass,   getDynamic,   getName,   getType,   isRestricted,   removeFormPropertyConfig,   setDynamic,   setName,   setRestricted,   setType,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts.config.FormBeanConfig Detail:
 public  void addFormPropertyConfig(FormPropertyConfig config) 
    Add a new FormPropertyConfig instance to the set associated with this module.
 public ActionForm createActionForm(ActionServlet servlet) throws IllegalAccessException, InstantiationException 

    Create and return an ActionForm instance appropriate to the information in this FormBeanConfig.

 public FormPropertyConfig findFormPropertyConfig(String name) 
    Return the form property configuration for the specified property name, if any; otherwise return null.
 public FormPropertyConfig[] findFormPropertyConfigs() 
    Return the form property configurations for this module. If there are none, a zero-length array is returned.
 protected Class formBeanClass() 
    Return the Class instance for the form bean implementation configured by this FormBeanConfig instance. This method uses the same algorithm as RequestUtils.applicationClass() but is reproduced to avoid a runtime dependence.
 public  void freeze() 
    Freeze the configuration of this component.
 public DynaActionFormClass getDynaActionFormClass() 

    Return the DynaActionFormClass associated with a DynaActionForm.

 public boolean getDynamic() 
 public String getName() 
 public String getType() 
 public boolean isRestricted() 

    Indicates whether a MutableDynaClass is currently restricted.

    If so, no changes to the existing registration of property names, data types, readability, or writeability are allowed.

 public  void removeFormPropertyConfig(FormPropertyConfig config) 
    Remove the specified form property configuration instance.
 public  void setDynamic(boolean dynamic) 
Deprecated! The - value to be returned by getDynamic() is now computed automatically in setType()

 public  void setName(String name) 
 public  void setRestricted(boolean restricted) 

    Set whether a MutableDynaClass is currently restricted.

    If so, no changes to the existing registration of property names, data types, readability, or writeability are allowed.

 public  void setType(String type) 
 public String toString() 
    Return a String representation of this object.