org.apache.struts.action

Class ActionFormBeans

Implemented Interfaces:
Serializable

public class ActionFormBeans
extends java.lang.Object
implements Serializable

Encapsulate a collection of ActionFormBean objects that can be administered and searched, while hiding the internal implementation.

Version:
$Revision: 1.8 $ $Date: 2003/04/15 00:18:45 $

Author:
Craig R. McClanahan

Field Summary

protected FastHashMap
formBeans
The collection of ActionFormBean instances, keyed by name.

Method Summary

void
addFormBean(ActionFormBean formBean)
Register a form bean to the set configured for this servlet.
ActionFormBean
findFormBean(String name)
Return the formBean associated with the specified logical name, if any; otherwise return null.
String[]
findFormBeans()
Return the set of names for form beans defined in this collection.
boolean
getFast()
Return the "fast" mode flag.
void
removeFormBean(ActionFormBean formBean)
Deregister a formBean from the set configured for this servlet.
void
setFast(boolean fast)
Set the "fast" mode flag.

Field Details

formBeans

protected FastHashMap formBeans
The collection of ActionFormBean instances, keyed by name.

Method Details

addFormBean

public void addFormBean(ActionFormBean formBean)
Register a form bean to the set configured for this servlet.

Parameters:
formBean - The formBean to be added


findFormBean

public ActionFormBean findFormBean(String name)
Return the formBean associated with the specified logical name, if any; otherwise return null.

Parameters:
name - Logical name of the desired form bean


findFormBeans

public String[] findFormBeans()
Return the set of names for form beans defined in this collection. If there are no such formBeans, a zero-length array is returned.


getFast

public boolean getFast()
Return the "fast" mode flag.


removeFormBean

public void removeFormBean(ActionFormBean formBean)
Deregister a formBean from the set configured for this servlet.

Parameters:
formBean - The formBean to be deregistered


setFast

public void setFast(boolean fast)
Set the "fast" mode flag.

Parameters:
fast - The new fast mode flag


Copyright B) 2000-2005 - Apache Software Foundation