1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.commons.scxml.model;
18
19 import java.io.Serializable;
20 import java.util.Map;
21
22 /***
23 * The class in this SCXML object model that corresponds to the
24 * <param> SCXML element.
25 *
26 */
27 public class Param implements NamespacePrefixesHolder, Serializable {
28
29 /***
30 * Serial version UID.
31 */
32 private static final long serialVersionUID = 1L;
33
34 /***
35 * The param name.
36 */
37 private String name;
38
39 /***
40 * The param expression, may be null.
41 */
42 private String expr;
43
44 /***
45 * The current XML namespaces in the SCXML document for this action node,
46 * preserved for deferred XPath evaluation.
47 */
48 private Map namespaces;
49
50 /***
51 * Default no-args constructor for Digester.
52 */
53 public Param() {
54 name = null;
55 expr = null;
56 }
57 /***
58 * Get the name for this param.
59 *
60 * @return String The param name.
61 */
62 public final String getName() {
63 return name;
64 }
65
66 /***
67 * Set the name for this param.
68 *
69 * @param name The param name.
70 */
71 public final void setName(final String name) {
72 this.name = name;
73 }
74
75 /***
76 * Get the expression for this param value.
77 *
78 * @return String The expression for this param value.
79 */
80 public final String getExpr() {
81 return expr;
82 }
83
84 /***
85 * Set the expression for this param value.
86 *
87 * @param expr The expression for this param value.
88 */
89 public final void setExpr(final String expr) {
90 this.expr = expr;
91 }
92
93 /***
94 * Get the XML namespaces at this action node in the SCXML document.
95 *
96 * @return Returns the map of namespaces.
97 */
98 public final Map getNamespaces() {
99 return namespaces;
100 }
101
102 /***
103 * Set the XML namespaces at this action node in the SCXML document.
104 *
105 * @param namespaces The document namespaces.
106 */
107 public final void setNamespaces(final Map namespaces) {
108 this.namespaces = namespaces;
109 }
110
111 }
112