1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.struts.flow;
17
18 import org.apache.struts.action.ActionMapping;
19
20 /***
21 * <p>
22 *
23 * The extension of a Struts action mapping adds support for the <code>function</code>
24 * property which contains the JavaScript Flow function to execute.</p>
25 *
26 *@version $Revision: 1.3 $ $Date: 2004/06/14 18:46:34 $
27 */
28
29 public class FlowMapping extends ActionMapping {
30
31 private String func;
32 private String script;
33
34
35 /***
36 * Returns the value of script.
37 *
38 *@return The script value
39 */
40 public String getScript() {
41 return script;
42 }
43
44
45 /***
46 * Sets the value of script.
47 *
48 *@param script The value to assign script.
49 */
50 public void setScript(String script) {
51 this.script = script;
52 }
53
54
55 /***
56 * Sets the function attribute of the FlowMapping object
57 *
58 *@param f The new function value
59 */
60 public void setFunction(String f) {
61 this.func = f;
62 }
63
64
65 /***
66 * Gets the function attribute of the FlowMapping object
67 *
68 *@return The function value
69 */
70 public String getFunction() {
71 return func;
72 }
73 }
74