Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
DroolsVariableImplementation |
|
| 1.0;1 |
1 | package org.boretti.drools.integration.drools5.implementation; | |
2 | ||
3 | /** | |
4 | * | |
5 | * @author mbo | |
6 | * | |
7 | */ | |
8 | class DroolsVariableImplementation { | |
9 | private boolean global; | |
10 | ||
11 | private Object data; | |
12 | ||
13 | /** | |
14 | * @param global | |
15 | * @param data | |
16 | */ | |
17 | DroolsVariableImplementation(boolean global, Object data) { | |
18 | 130 | super(); |
19 | 130 | this.global = global; |
20 | 130 | this.data = data; |
21 | 130 | } |
22 | ||
23 | /** | |
24 | * @return the global | |
25 | */ | |
26 | public boolean isGlobal() { | |
27 | 118 | return global; |
28 | } | |
29 | ||
30 | /** | |
31 | * @param global the global to set | |
32 | */ | |
33 | public void setGlobal(boolean global) { | |
34 | 0 | this.global = global; |
35 | 0 | } |
36 | ||
37 | /** | |
38 | * @return the data | |
39 | */ | |
40 | public Object getData() { | |
41 | 118 | return data; |
42 | } | |
43 | ||
44 | /** | |
45 | * @param data the data to set | |
46 | */ | |
47 | public void setData(Object data) { | |
48 | 0 | this.data = data; |
49 | 0 | } |
50 | } |