01: package org.directwebremoting.webwork;
02:
03: /**
04: * A simple WebWork action invocation definition
05: * (it is mapped to a <code>com.opensymphony.webwork.dispatcher.mapper.ActionMapping</code>).
06: *
07: * @author <a href='mailto:the_mindstorm[at]evolva[dot]ro'>Alexandru Popescu</a>
08: */
09: public class ActionDefinition {
10: /**
11: * @return Returns the action.
12: */
13: public String getAction() {
14: return action;
15: }
16:
17: /**
18: * @param action The action to set.
19: */
20: public void setAction(String action) {
21: this .action = action;
22: }
23:
24: /**
25: * @return Returns the executeResult.
26: */
27: public boolean isExecuteResult() {
28: return executeResult;
29: }
30:
31: /**
32: * @param executeResult The executeResult to set.
33: */
34: public void setExecuteResult(boolean executeResult) {
35: this .executeResult = executeResult;
36: }
37:
38: /**
39: * @return Returns the method.
40: */
41: public String getMethod() {
42: return method;
43: }
44:
45: /**
46: * @param method The method to set.
47: */
48: public void setMethod(String method) {
49: this .method = method;
50: }
51:
52: /**
53: * @return Returns the namespace.
54: */
55: public String getNamespace() {
56: return namespace;
57: }
58:
59: /**
60: * @param namespace The namespace to set.
61: */
62: public void setNamespace(String namespace) {
63: this .namespace = namespace;
64: }
65:
66: /* (non-Javadoc)
67: * @see java.lang.Object#toString()
68: */
69: @Override
70: public String toString() {
71: return "[ActionDefinition: namespace=" + namespace + " action="
72: + action + " method=" + method + " executeResult="
73: + executeResult + "]";
74: }
75:
76: protected String namespace;
77:
78: protected String action;
79:
80: protected String method;
81:
82: protected boolean executeResult;
83: }
|