yawda.data.model.application
Class CAction
java.lang.Object
yawda.data.model.application.CAction
- public final class CAction
- extends Object
This class represents a Struts Action Handler.
- Author:
- Quentin Anciaux
CAction
public CAction(String className,
CModule parent)
- Create a new CAction
- Parameters:
className - the class name of the object that extends struts Action classparent - A reference to the module which own this Action
getParent
public final CModule getParent()
- Returns:
- A reference to the module which own this Action
getClassName
public final String getClassName()
- Returns:
- the class name of the object that extends struts Action class
unmarshall
public static final CAction unmarshall(Node node,
CModule parent)
- Parameters:
node - A node of an <action> tagparent - A reference to the module which own the unmarshalled Action
- Returns:
- An unmarshalled CAction
unmarshallInnerContent
public static final CAction unmarshallInnerContent(Node node,
CAction action)
- Parameters:
node - A node of an <action> tag
- Returns:
- the Action filled with its content/
addParameter
public final void addParameter(String name,
String value)
getParameters
public final Iterator getParameters()
innerContent
public final String innerContent(String tabs)
- Parameters:
tabs - A string containing one or more tabs '\t'
- Returns:
- The content as an xml string
toString
public final String toString()
- See Also:
Object.toString()
toString
public final String toString(String tabs)
- Parameters:
tabs - A string containing one or more tabs '\t'
- Returns:
- The action as an xml string