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

Object
  extended by StrutsElementSupport
      extended by ActionModel
All Implemented Interfaces:
ExceptionContainer, ForwardContainer
Direct Known Subclasses:
GenActionModel

public class ActionModel
extends StrutsElementSupport
implements ForwardContainer, ExceptionContainer

Represents an ActionMapping in a Struts based web application or sub application.


Field Summary
static String DEFAULT_FORM_SCOPE
           
 
Constructor Summary
  ActionModel(ActionModel src, String newPath)
          Construct a copy of the given mapping, with the given path.
  ActionModel(String path, String formName, StrutsApp parent)
           
  ActionModel(String path, StrutsApp parent)
           
protected ActionModel(StrutsApp parent)
           
 
Method Summary
 void addConditionalForward(String expression, String forwardName)
           
 void addException(ExceptionModel em)
          Implemented for ExceptionContainer.
 void addForward(ForwardModel newActionForward)
          Implemented for ForwardContainer.
protected  ForwardDocument.Forward addNewForward(XmlObject xmlObject)
           
 void deleteForward(ForwardModel forward)
           
 ForwardModel findForward(String forwardName)
           
 String getAttribute()
           
 String getClassName()
           
 String getDefaultForwardName()
           
 String getFormBeanName()
           
 String getFormClass()
           
 String getFormMember()
           
 String getForward()
           
 ForwardModel[] getForwards()
           
 List getForwardsAsList()
           
 String getInclude()
           
 String getInput()
           
 String getName()
           
 String getParameter()
           
 String getPath()
           
 String getPath(boolean useUnqualifiedPath)
           
 String getPrefix()
           
 String getRoles()
           
 String getScope()
           
 String getSuffix()
           
 String getType()
           
 String getUnqualifiedActionPath()
           
 boolean isOverloaded()
           
 boolean isReadonly()
           
 boolean isSimpleAction()
           
 boolean isUnknown()
           
 boolean isValidate()
           
 void setAttribute(String attribute)
           
 void setClassName(String className)
           
 void setDefaultForwardName(String defaultForwardName)
           
 void setFormBeanMessageResourcesKey(String formBeanMessageResourcesKey)
           
 void setFormBeanName(String formBeanName)
           
 void setFormClass(String formClass)
           
 void setFormMember(String formMember)
           
 void setForward(String forward)
           
 void setInclude(String include)
           
 void setInput(String input)
           
 void setLoginRequired(boolean loginRequired)
           
 void setName(String name)
           
 void setOverloaded(boolean overloaded)
           
 void setParameter(String parameter)
           
 void setPath(String path)
           
 void setPrefix(String prefix)
           
 void setPreventDoubleSubmit(boolean preventDoubleSubmit)
           
 void setReadonly(boolean readonly)
           
 void setRoles(String roles)
           
 void setScope(String scope)
           
 void setSimpleAction(boolean simpleAction)
           
 void setSuffix(String suffix)
           
 void setType(String type)
           
 void setUnknown(boolean unknown)
           
 void setUnqualifiedActionPath(String unqualifiedActionPath)
           
 void setValidate(boolean validate)
           
 void writeForwards(ForwardDocument.Forward[] existingForwards, XmlObject xmlForwardContainer)
           
 void writeToXMLBean(ActionDocument.Action 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
 
Methods inherited from interface ForwardContainer
addForward, findForward
 

Field Detail

DEFAULT_FORM_SCOPE

public static final String DEFAULT_FORM_SCOPE
See Also:
Constant Field Values
Constructor Detail

ActionModel

public ActionModel(String path,
                   StrutsApp parent)

ActionModel

public ActionModel(String path,
                   String formName,
                   StrutsApp parent)

ActionModel

protected ActionModel(StrutsApp parent)

ActionModel

public ActionModel(ActionModel src,
                   String newPath)
Construct a copy of the given mapping, with the given path.

Method Detail

setFormBeanName

public void setFormBeanName(String formBeanName)

writeToXMLBean

public void writeToXMLBean(ActionDocument.Action xb)

addNewForward

protected ForwardDocument.Forward addNewForward(XmlObject xmlObject)

addException

public void addException(ExceptionModel em)
Implemented for ExceptionContainer.

Specified by:
addException in interface ExceptionContainer

getAttribute

public String getAttribute()

setAttribute

public void setAttribute(String attribute)

getClassName

public String getClassName()
Overrides:
getClassName in class StrutsElementSupport

setClassName

public void setClassName(String className)
Overrides:
setClassName in class StrutsElementSupport

getForward

public String getForward()

setForward

public void setForward(String forward)

getInclude

public String getInclude()

setInclude

public void setInclude(String include)

getInput

public String getInput()

setInput

public void setInput(String input)

getName

public String getName()

getFormBeanName

public String getFormBeanName()

setName

public void setName(String name)

getParameter

public String getParameter()

setParameter

public void setParameter(String parameter)

isValidate

public boolean isValidate()

setValidate

public void setValidate(boolean validate)

getPath

public String getPath()

getPath

public String getPath(boolean useUnqualifiedPath)

setPath

public void setPath(String path)

getPrefix

public String getPrefix()

setPrefix

public void setPrefix(String prefix)

getScope

public String getScope()

setScope

public void setScope(String scope)

getSuffix

public String getSuffix()

setSuffix

public void setSuffix(String suffix)

getType

public String getType()

setType

public void setType(String type)

isUnknown

public boolean isUnknown()

setUnknown

public void setUnknown(boolean unknown)

getUnqualifiedActionPath

public String getUnqualifiedActionPath()

setUnqualifiedActionPath

public void setUnqualifiedActionPath(String unqualifiedActionPath)

getDefaultForwardName

public String getDefaultForwardName()

setDefaultForwardName

public void setDefaultForwardName(String defaultForwardName)

getRoles

public String getRoles()

setRoles

public void setRoles(String roles)

setLoginRequired

public void setLoginRequired(boolean loginRequired)

setPreventDoubleSubmit

public void setPreventDoubleSubmit(boolean preventDoubleSubmit)

isSimpleAction

public boolean isSimpleAction()

setSimpleAction

public void setSimpleAction(boolean simpleAction)

isOverloaded

public boolean isOverloaded()

setOverloaded

public void setOverloaded(boolean overloaded)

getFormMember

public String getFormMember()

setFormMember

public void setFormMember(String formMember)

getFormClass

public String getFormClass()

setFormClass

public void setFormClass(String formClass)

isReadonly

public boolean isReadonly()

setReadonly

public void setReadonly(boolean readonly)

addConditionalForward

public void addConditionalForward(String expression,
                                  String forwardName)

setFormBeanMessageResourcesKey

public void setFormBeanMessageResourcesKey(String formBeanMessageResourcesKey)

addForward

public void addForward(ForwardModel newActionForward)
Implemented for ForwardContainer.

Specified by:
addForward in interface ForwardContainer

findForward

public ForwardModel findForward(String forwardName)
Specified by:
findForward in interface ForwardContainer

writeForwards

public void writeForwards(ForwardDocument.Forward[] existingForwards,
                          XmlObject xmlForwardContainer)

getForwards

public ForwardModel[] getForwards()

getForwardsAsList

public List getForwardsAsList()

deleteForward

public void deleteForward(ForwardModel forward)