1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.rice.kew.rule; |
17 |
|
|
18 |
|
import java.util.ArrayList; |
19 |
|
import java.util.List; |
20 |
|
|
21 |
|
import org.apache.commons.lang.builder.ToStringBuilder; |
22 |
|
|
23 |
|
|
24 |
|
@link |
25 |
|
@author |
26 |
|
|
|
|
| 0% |
Uncovered Elements: 25 (25) |
Complexity: 8 |
Complexity Density: 0.5 |
|
27 |
|
public class RuleExpressionResult { |
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
private final Rule rule; |
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
private final boolean success; |
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
private final List<RuleResponsibility> responsibilities; |
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
@param |
44 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
45 |
0
|
public RuleExpressionResult(Rule rule, boolean success) {... |
46 |
0
|
this.rule = rule; |
47 |
0
|
this.success = success; |
48 |
0
|
this.responsibilities = null; |
49 |
|
} |
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
@param |
54 |
|
@param |
55 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
56 |
0
|
public RuleExpressionResult(Rule rule, boolean success, List<RuleResponsibility> responsibilities) {... |
57 |
0
|
this.rule = rule; |
58 |
0
|
this.success = success; |
59 |
0
|
this.responsibilities = responsibilities; |
60 |
|
} |
61 |
|
|
62 |
|
|
63 |
|
|
64 |
|
@param |
65 |
|
@param |
66 |
|
|
|
|
| 0% |
Uncovered Elements: 8 (8) |
Complexity: 2 |
Complexity Density: 0.33 |
|
67 |
0
|
public RuleExpressionResult(Rule rule, boolean success, RuleResponsibility responsibility) {... |
68 |
0
|
this.rule = rule; |
69 |
0
|
this.success = success; |
70 |
0
|
if (responsibility != null) { |
71 |
0
|
responsibilities = new ArrayList<RuleResponsibility>(); |
72 |
0
|
responsibilities.add(responsibility); |
73 |
|
} else { |
74 |
0
|
responsibilities = null; |
75 |
|
} |
76 |
|
} |
77 |
|
|
78 |
|
|
79 |
|
@return |
80 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
81 |
0
|
public Rule getRule() {... |
82 |
0
|
return rule; |
83 |
|
} |
84 |
|
|
85 |
|
|
86 |
|
@return |
87 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
88 |
0
|
public boolean isSuccess() {... |
89 |
0
|
return success; |
90 |
|
} |
91 |
|
|
92 |
|
|
93 |
|
@return |
94 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
95 |
0
|
public List<RuleResponsibility> getResponsibilities() {... |
96 |
0
|
return responsibilities; |
97 |
|
} |
98 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
99 |
0
|
public String toString() {... |
100 |
0
|
return new ToStringBuilder(this).append("rule", rule) |
101 |
|
.append("success", success) |
102 |
|
.append("responsibilities", responsibilities).toString(); |
103 |
|
} |
104 |
|
} |