Skip to content

Commit c08534b

Browse files
committed
removed final from set variable class
1 parent ed856c9 commit c08534b

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

Diff for: src/main/java/morph/base/actions/impl/SetVariableAction.java

+25-3
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,18 @@
99
*/
1010
public class SetVariableAction implements Action {
1111

12-
private final VariableScope variableScope;
13-
private final String variableKey;
12+
private VariableScope variableScope;
13+
private String variableKey;
14+
private Object value;
1415

15-
public SetVariableAction(VariableScope variableScope, String variableKey) {
16+
public SetVariableAction(VariableScope variableScope, String variableKey, Object value) {
1617
this.variableScope = variableScope;
1718
this.variableKey = variableKey;
19+
this.value = value;
20+
}
21+
22+
public SetVariableAction(VariableScope variableScope, String variableKey) {
23+
this(variableScope, variableKey, null);
1824
}
1925

2026
public VariableScope getVariableScope() {
@@ -25,6 +31,22 @@ public String getVariableKey() {
2531
return variableKey;
2632
}
2733

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+
2850
@Override
2951
public String getName() {
3052
return "setVariableAction";

0 commit comments

Comments
 (0)