org.apache.beehive.netui.compiler.model
Class ActionModel
Object
StrutsElementSupport
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.
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 |
DEFAULT_FORM_SCOPE
public static final String DEFAULT_FORM_SCOPE
- See Also:
- Constant Field Values
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.
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)