yawda.data.model.application
Class CAction

java.lang.Object
  extended byyawda.data.model.application.CAction

public final class CAction
extends Object

This class represents a Struts Action Handler.

Author:
Quentin Anciaux

Constructor Summary
CAction(String className, CModule parent)
          Create a new CAction
 
Method Summary
 void addParameter(String name, String value)
           
 String getClassName()
           
 Iterator getParameters()
           
 CModule getParent()
           
 String innerContent(String tabs)
           
 String toString()
           
 String toString(String tabs)
           
static CAction unmarshall(Node node, CModule parent)
           
static CAction unmarshallInnerContent(Node node, CAction action)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CAction

public CAction(String className,
               CModule parent)
Create a new CAction

Parameters:
className - the class name of the object that extends struts Action class
parent - A reference to the module which own this Action
Method Detail

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> tag
parent - 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