com.alveole.studio.web.managers.struts2editor
Class DefaultActionRefPanelModel

java.lang.Object
  extended by com.alveole.studio.web.managers.struts2editor.DefaultActionRefPanelModel

public class DefaultActionRefPanelModel
extends java.lang.Object

This is the model associated to default action stack view.

Author:
sylvain

Field Summary
protected  Struts2BaseFileModel baseModel
          Struts2 base model.
protected  org.w3c.dom.Element defaultActionRef
          Default action ref tag.
protected  java.lang.String defaultActionRefName
          Interceptor stack target name.
protected  org.w3c.dom.Element pack
          Associated package.
protected  java.lang.String[][] parameters
          List of parameters.
protected  org.w3c.dom.Element parent
          Default action tag.
 
Constructor Summary
DefaultActionRefPanelModel(Struts2BaseFileModel baseModel, org.w3c.dom.Element parent, org.w3c.dom.Element defaultActionRef)
           
 
Method Summary
 java.lang.String check()
          Check if parameters are correct.
 java.lang.String[] getAvailableActions()
          Gets all actions from the current Struts2 package.
 Struts2BaseFileModel getBaseModel()
           
 org.w3c.dom.Element getDefaultActionRef()
           
 java.lang.String getDefaultActionRefName()
           
 org.w3c.dom.Element getPack()
           
 java.lang.String[][] getParameters()
           
 org.w3c.dom.Element getParent()
           
 org.w3c.dom.Element performOk()
          Performs OK.
 void setBaseModel(Struts2BaseFileModel baseModel)
           
 void setDefaultActionRef(org.w3c.dom.Element defaultActionRef)
           
 void setDefaultActionRefName(java.lang.String defaultActionRefName)
           
 void setPack(org.w3c.dom.Element pack)
           
 void setParameters(java.lang.String[][] parameters)
           
 void setParent(org.w3c.dom.Element parent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultActionRefName

protected java.lang.String defaultActionRefName
Interceptor stack target name.


baseModel

protected Struts2BaseFileModel baseModel
Struts2 base model.


parameters

protected java.lang.String[][] parameters
List of parameters.


parent

protected org.w3c.dom.Element parent
Default action tag.


defaultActionRef

protected org.w3c.dom.Element defaultActionRef
Default action ref tag.


pack

protected org.w3c.dom.Element pack
Associated package.

Constructor Detail

DefaultActionRefPanelModel

public DefaultActionRefPanelModel(Struts2BaseFileModel baseModel,
                                  org.w3c.dom.Element parent,
                                  org.w3c.dom.Element defaultActionRef)
Method Detail

check

public java.lang.String check()
Check if parameters are correct.


performOk

public org.w3c.dom.Element performOk()
Performs OK.


getParameters

public java.lang.String[][] getParameters()
Returns:
the parameters

setParameters

public void setParameters(java.lang.String[][] parameters)
Parameters:
parameters - the parameters to set

getBaseModel

public Struts2BaseFileModel getBaseModel()
Returns:
the baseModel

setBaseModel

public void setBaseModel(Struts2BaseFileModel baseModel)
Parameters:
baseModel - the baseModel to set

getDefaultActionRef

public org.w3c.dom.Element getDefaultActionRef()
Returns:
the defaultActionRef

setDefaultActionRef

public void setDefaultActionRef(org.w3c.dom.Element defaultActionRef)
Parameters:
defaultActionRef - the defaultActionRef to set

getDefaultActionRefName

public java.lang.String getDefaultActionRefName()
Returns:
the defaultActionRefName

setDefaultActionRefName

public void setDefaultActionRefName(java.lang.String defaultActionRefName)
Parameters:
defaultActionRefName - the defaultActionRefName to set

getPack

public org.w3c.dom.Element getPack()
Returns:
the pack

setPack

public void setPack(org.w3c.dom.Element pack)
Parameters:
pack - the pack to set

getParent

public org.w3c.dom.Element getParent()
Returns:
the parent

setParent

public void setParent(org.w3c.dom.Element parent)
Parameters:
parent - the parent to set

getAvailableActions

public java.lang.String[] getAvailableActions()
Gets all actions from the current Struts2 package.