KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > directwebremoting > webwork > ActionDefinition


1
2 package org.directwebremoting.webwork;
3
4 /**
5  * A simple WebWork action invocation definition
6  * (it is mapped to a <code>com.opensymphony.webwork.dispatcher.mapper.ActionMapping</code>).
7  *
8  * @author <a HREF='mailto:the_mindstorm[at]evolva[dot]ro'>Alexandru Popescu</a>
9  */

10 public class ActionDefinition
11 {
12     /**
13      * @return Returns the action.
14      */

15     public String JavaDoc getAction()
16     {
17         return action;
18     }
19
20     /**
21      * @param action The action to set.
22      */

23     public void setAction(String JavaDoc action)
24     {
25         this.action = action;
26     }
27
28     /**
29      * @return Returns the executeResult.
30      */

31     public boolean isExecuteResult()
32     {
33         return executeResult;
34     }
35
36     /**
37      * @param executeResult The executeResult to set.
38      */

39     public void setExecuteResult(boolean executeResult)
40     {
41         this.executeResult = executeResult;
42     }
43
44     /**
45      * @return Returns the method.
46      */

47     public String JavaDoc getMethod()
48     {
49         return method;
50     }
51
52     /**
53      * @param method The method to set.
54      */

55     public void setMethod(String JavaDoc method)
56     {
57         this.method = method;
58     }
59
60     /**
61      * @return Returns the namespace.
62      */

63     public String JavaDoc getNamespace()
64     {
65         return namespace;
66     }
67
68     /**
69      * @param namespace The namespace to set.
70      */

71     public void setNamespace(String JavaDoc namespace)
72     {
73         this.namespace = namespace;
74     }
75
76     /* (non-Javadoc)
77      * @see java.lang.Object#toString()
78      */

79     public String JavaDoc toString()
80     {
81         return "[ActionDefinition: namespace=" + namespace + " action=" + action + " method=" + method + " executeResult=" + executeResult + "]";
82     }
83
84     protected String JavaDoc namespace;
85
86     protected String JavaDoc action;
87
88     protected String JavaDoc method;
89
90     protected boolean executeResult;
91 }
92
Popular Tags