1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.qedeq.kernel.se.dto.module; |
17 |
|
|
18 |
|
import org.qedeq.base.utility.EqualsUtility; |
19 |
|
import org.qedeq.kernel.se.base.module.LocationList; |
20 |
|
import org.qedeq.kernel.se.base.module.Specification; |
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
@link@link |
27 |
|
|
28 |
|
|
29 |
|
@author |
30 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (34) |
Complexity: 15 |
Complexity Density: 1 |
|
31 |
|
public class SpecificationVo implements Specification { |
32 |
|
|
33 |
|
|
34 |
|
private String name; |
35 |
|
|
36 |
|
|
37 |
|
private String ruleVersion; |
38 |
|
|
39 |
|
|
40 |
|
private LocationList locationList; |
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
@param |
47 |
|
@param |
48 |
|
@param |
49 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
50 |
6
|
public SpecificationVo(final String name, final String ruleVersion,... |
51 |
|
final LocationList locations) { |
52 |
6
|
this.name = name; |
53 |
6
|
this.ruleVersion = ruleVersion; |
54 |
6
|
this.locationList = locations; |
55 |
|
} |
56 |
|
|
57 |
|
|
58 |
|
|
59 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
60 |
166
|
public SpecificationVo() {... |
61 |
|
|
62 |
|
} |
63 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
64 |
136
|
public final void setName(final String name) {... |
65 |
136
|
this.name = name; |
66 |
|
} |
67 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
68 |
1212
|
public final String getName() {... |
69 |
1212
|
return name; |
70 |
|
} |
71 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
72 |
136
|
public final void setRuleVersion(final String ruleVersion) {... |
73 |
136
|
this.ruleVersion = ruleVersion; |
74 |
|
} |
75 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
76 |
1221
|
public final String getRuleVersion() {... |
77 |
1221
|
return ruleVersion; |
78 |
|
} |
79 |
|
|
80 |
|
|
81 |
|
|
82 |
|
|
83 |
|
@param |
84 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
85 |
142
|
public final void setLocationList(final LocationListVo locations) {... |
86 |
142
|
this.locationList = locations; |
87 |
|
} |
88 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
89 |
1225
|
public final LocationList getLocationList() {... |
90 |
1225
|
return locationList; |
91 |
|
} |
92 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
93 |
283
|
public boolean equals(final Object obj) {... |
94 |
283
|
if (!(obj instanceof SpecificationVo)) { |
95 |
11
|
return false; |
96 |
|
} |
97 |
272
|
final SpecificationVo other = (SpecificationVo) obj; |
98 |
272
|
return EqualsUtility.equals(getName(), other.getName()) |
99 |
|
&& EqualsUtility.equals(getRuleVersion(), other.getRuleVersion()) |
100 |
|
&& EqualsUtility.equals(getLocationList(), other.getLocationList()); |
101 |
|
} |
102 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (7) |
Complexity: 4 |
Complexity Density: 4 |
|
103 |
346
|
public int hashCode() {... |
104 |
346
|
return (getName() != null ? getName().hashCode() : 0) |
105 |
346
|
^ (getRuleVersion() != null ? 1 ^ getRuleVersion().hashCode() : 0) |
106 |
346
|
^ (getLocationList() != null ? 1 ^ getLocationList().hashCode() : 0); |
107 |
|
} |
108 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
109 |
214
|
public String toString() {... |
110 |
214
|
return "Name: " + name + ", Rule Version: " + ruleVersion + "\n" + locationList; |
111 |
|
} |
112 |
|
|
113 |
|
} |