View Javadoc

1   /*
2    *  Copyright 1999-2004 The Apache Software Foundation.
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *  http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
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