File tree 1 file changed +25
-3
lines changed
src/main/java/morph/base/actions/impl
1 file changed +25
-3
lines changed Original file line number Diff line number Diff line change 9
9
*/
10
10
public class SetVariableAction implements Action {
11
11
12
- private final VariableScope variableScope ;
13
- private final String variableKey ;
12
+ private VariableScope variableScope ;
13
+ private String variableKey ;
14
+ private Object value ;
14
15
15
- public SetVariableAction (VariableScope variableScope , String variableKey ) {
16
+ public SetVariableAction (VariableScope variableScope , String variableKey , Object value ) {
16
17
this .variableScope = variableScope ;
17
18
this .variableKey = variableKey ;
19
+ this .value = value ;
20
+ }
21
+
22
+ public SetVariableAction (VariableScope variableScope , String variableKey ) {
23
+ this (variableScope , variableKey , null );
18
24
}
19
25
20
26
public VariableScope getVariableScope () {
@@ -25,6 +31,22 @@ public String getVariableKey() {
25
31
return variableKey ;
26
32
}
27
33
34
+ public Object getValue () {
35
+ return value ;
36
+ }
37
+
38
+ public void setVariableScope (VariableScope variableScope ) {
39
+ this .variableScope = variableScope ;
40
+ }
41
+
42
+ public void setVariableKey (String variableKey ) {
43
+ this .variableKey = variableKey ;
44
+ }
45
+
46
+ public void setValue (Object value ) {
47
+ this .value = value ;
48
+ }
49
+
28
50
@ Override
29
51
public String getName () {
30
52
return "setVariableAction" ;
You can’t perform that action at this time.
0 commit comments