org.apache.beehive.netui.compiler.model
Class FormBeanModel
Object
StrutsElementSupport
FormBeanModel
public class FormBeanModel
- extends StrutsElementSupport
Represents a form bean in a Struts application.
Constructor Summary |
FormBeanModel(String name,
String type,
String actualType,
boolean pageFlowScoped,
StrutsApp parent)
|
Methods inherited from class StrutsElementSupport |
addComment, getAttr, getAttrBool, getComment, getDescription, getDisplayName, getIcon, getParentApp, getProperty, setComment, setDescription, setDisplayName, setIcon, setParentApp, setProperty |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormBeanModel
public FormBeanModel(String name,
String type,
String actualType,
boolean pageFlowScoped,
StrutsApp parent)
writeToXMLBean
public void writeToXMLBean(FormBeanDocument.FormBean xb)
getId
public String getId()
setId
public void setId(String id)
getClassName
public String getClassName()
- Overrides:
getClassName
in class StrutsElementSupport
setClassName
public void setClassName(String className)
- Overrides:
setClassName
in class StrutsElementSupport
isDynamic
public boolean isDynamic()
setDynamic
public void setDynamic(boolean dynamic)
getName
public String getName()
setName
public void setName(String name)
getType
public String getType()
setType
public void setType(String type)
getActualType
public String getActualType()
setActualType
public void setActualType(String actualType)
addProperty
public void addProperty(String name,
String type,
boolean required,
boolean multival)
updateProperties
public void updateProperties(Collection newProps)
- Sets the collection of properties for a form bean to a new collection.
getProperties
public FormBeanModel.Property[] getProperties()
deleteProperty
public void deleteProperty(String name)
deleteProperty
public void deleteProperty(FormBeanModel.Property prop)
findProperty
public FormBeanModel.Property findProperty(String name)
findPropertyIndex
protected int findPropertyIndex(String name)
getPropertyList
protected final List getPropertyList()
- Returns a clone (shallow copy) of the internal properties list.
isPageFlowScoped
public boolean isPageFlowScoped()