org.apache.beehive.netui.compiler.model
Class FormBeanModel

Object
  extended by StrutsElementSupport
      extended by FormBeanModel

public class FormBeanModel
extends StrutsElementSupport

Represents a form bean in a Struts application.


Nested Class Summary
static class FormBeanModel.Property
           
 
Constructor Summary
FormBeanModel(String name, String type, String actualType, boolean pageFlowScoped, StrutsApp parent)
           
 
Method Summary
 void addProperty(String name, String type, boolean required, boolean multival)
           
 void deleteProperty(FormBeanModel.Property prop)
           
 void deleteProperty(String name)
           
 FormBeanModel.Property findProperty(String name)
           
protected  int findPropertyIndex(String name)
           
 String getActualType()
           
 String getClassName()
           
 String getId()
           
 String getName()
           
 FormBeanModel.Property[] getProperties()
           
protected  List getPropertyList()
          Returns a clone (shallow copy) of the internal properties list.
 String getType()
           
 boolean isDynamic()
           
 boolean isPageFlowScoped()
           
 void setActualType(String actualType)
           
 void setClassName(String className)
           
 void setDynamic(boolean dynamic)
           
 void setId(String id)
           
 void setName(String name)
           
 void setType(String type)
           
 void updateProperties(Collection newProps)
          Sets the collection of properties for a form bean to a new collection.
 void writeToXMLBean(FormBeanDocument.FormBean xb)
           
 
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
 

Constructor Detail

FormBeanModel

public FormBeanModel(String name,
                     String type,
                     String actualType,
                     boolean pageFlowScoped,
                     StrutsApp parent)
Method Detail

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()