View Javadoc

1   /*
2    *
3    *   Copyright 2006 The Apache Software Foundation.
4    *
5    *  Licensed under the Apache License, Version 2.0 (the "License");
6    *  you may not use this file except in compliance with the License.
7    *  You may obtain a copy of the License at
8    *
9    *      http://www.apache.org/licenses/LICENSE-2.0
10   *
11   *  Unless required by applicable law or agreed to in writing, software
12   *  distributed under the License is distributed on an "AS IS" BASIS,
13   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   *  See the License for the specific language governing permissions and
15   *  limitations under the License.
16   *
17   */
18  package org.apache.commons.scxml.model;
19  
20  /***
21   * The class in this SCXML object model that corresponds to the
22   * <param> SCXML element.
23   *
24   */
25  public class Param {
26  
27      /***
28       * The param name.
29       */
30      private String name;
31  
32      /***
33       * The param expression, may be null.
34       */
35      private String expr;
36  
37      /***
38       * Default no-args constructor for Digester.
39       */
40      public Param() {
41          name = null;
42          expr = null;
43      }
44      /***
45       * Get the name for this param.
46       *
47       * @return String The param name.
48       */
49      public final String getName() {
50          return name;
51      }
52  
53      /***
54       * Set the name for this param.
55       *
56       * @param name The param name.
57       */
58      public final void setName(final String name) {
59          this.name = name;
60      }
61  
62      /***
63       * Get the expression for this param value.
64       *
65       * @return String The expression for this param value.
66       */
67      public final String getExpr() {
68          return expr;
69      }
70  
71      /***
72       * Set the expression for this param value.
73       *
74       * @param expr The expression for this param value.
75       */
76      public final void setExpr(final String expr) {
77          this.expr = expr;
78      }
79  
80  }
81