| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.apache.struts.config.FormBeanConfig
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  boolean | 
dynamic
Is the form bean class an instance of DynaActionForm with dynamic properties?  | 
protected  java.util.HashMap | 
formProperties
The set of FormProperty elements defining dynamic form properties for this form bean, keyed by property name.  | 
protected  ModuleConfig | 
moduleConfig
The ModuleConfig with which this form bean definition
 is associated. | 
protected  java.lang.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  java.lang.String | 
type
The fully qualified Java class name of the implementation class to be used or generated.  | 
| Constructor Summary | |
FormBeanConfig()
 | 
|
| Method Summary | |
 void | 
addFormPropertyConfig(FormPropertyConfig config)
Add a new FormPropertyConfig instance to the set associated
 with this module. | 
 FormPropertyConfig | 
findFormPropertyConfig(java.lang.String name)
Return the form property configuration for the specified property name, if any; otherwise return null. | 
 FormPropertyConfig[] | 
findFormPropertyConfigs()
Return the form property configurations for this module.  | 
protected  java.lang.Class | 
formBeanClass()
Return the Class instance for the form bean implementation
 configured by this FormBeanConfig instance. | 
 void | 
freeze()
Freeze the configuration of this component.  | 
 boolean | 
getDynamic()
 | 
 ModuleConfig | 
getModuleConfig()
Return the ModuleConfig with which this form bean definition
 is associated. | 
 java.lang.String | 
getName()
 | 
 java.lang.String | 
getType()
 | 
 void | 
removeFormPropertyConfig(FormPropertyConfig config)
Remove the specified form property configuration instance.  | 
 void | 
setDynamic(boolean dynamic)
Deprecated. The value to be returned by getDynamic()
 is now computed automatically in setType() | 
 void | 
setModuleConfig(ModuleConfig moduleConfig)
Set the ModuleConfig with which this form bean definition
 is associated. | 
 void | 
setName(java.lang.String name)
 | 
 void | 
setType(java.lang.String type)
 | 
 java.lang.String | 
toString()
Return a String representation of this object.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
protected boolean configured
protected java.util.HashMap formProperties
protected boolean dynamic
protected ModuleConfig moduleConfig
ModuleConfig with which this form bean definition
 is associated.
protected java.lang.String name
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 java.lang.String type
| Constructor Detail | 
public FormBeanConfig()
| Method Detail | 
public boolean getDynamic()
public void setDynamic(boolean dynamic)
getDynamic()
 is now computed automatically in setType()
public ModuleConfig getModuleConfig()
ModuleConfig with which this form bean definition
 is associated.
public void setModuleConfig(ModuleConfig moduleConfig)
ModuleConfig with which this form bean definition
 is associated.
moduleConfig - The new ModuleConfig or null
  to disassociate this form bean configuration from any modulepublic java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getType()
public void setType(java.lang.String type)
public void addFormPropertyConfig(FormPropertyConfig config)
FormPropertyConfig instance to the set associated
 with this module.
config - The new configuration instance to be added
java.lang.IllegalArgumentException - if this property name has already
  been definedpublic FormPropertyConfig findFormPropertyConfig(java.lang.String name)
null.
name - Form property name to find a configuration forpublic FormPropertyConfig[] findFormPropertyConfigs()
public void freeze()
public void removeFormPropertyConfig(FormPropertyConfig config)
config - FormPropertyConfig instance to be removedpublic java.lang.String toString()
toString in class java.lang.Objectprotected java.lang.Class formBeanClass()
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.
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||