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.LatexList; |
20 |
|
import org.qedeq.kernel.se.base.module.Section; |
21 |
|
import org.qedeq.kernel.se.base.module.SubsectionList; |
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
@author |
28 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (43) |
Complexity: 17 |
Complexity Density: 0.81 |
|
29 |
|
public class SectionVo implements Section { |
30 |
|
|
31 |
|
|
32 |
|
private Boolean noNumber; |
33 |
|
|
34 |
|
|
35 |
|
private LatexList title; |
36 |
|
|
37 |
|
|
38 |
|
private LatexList introduction; |
39 |
|
|
40 |
|
|
41 |
|
private SubsectionList subsectionList; |
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
46 |
216
|
public SectionVo() {... |
47 |
|
|
48 |
|
} |
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
@param |
54 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
55 |
75
|
public final void setNoNumber(final Boolean noNumber) {... |
56 |
75
|
this.noNumber = noNumber; |
57 |
|
} |
58 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
59 |
847
|
public final Boolean getNoNumber() {... |
60 |
847
|
return noNumber; |
61 |
|
} |
62 |
|
|
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
@param |
67 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
68 |
76
|
public final void setTitle(final LatexListVo title) {... |
69 |
76
|
this.title = title; |
70 |
|
} |
71 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
72 |
1097
|
public final LatexList getTitle() {... |
73 |
1097
|
return title; |
74 |
|
} |
75 |
|
|
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
@param |
80 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
81 |
76
|
public final void setIntroduction(final LatexListVo introduction) {... |
82 |
76
|
this.introduction = introduction; |
83 |
|
} |
84 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
85 |
994
|
public final LatexList getIntroduction() {... |
86 |
994
|
return introduction; |
87 |
|
} |
88 |
|
|
89 |
|
|
90 |
|
|
91 |
|
|
92 |
|
@param |
93 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
94 |
187
|
public final void setSubsectionList(final SubsectionListVo subsections) {... |
95 |
187
|
this.subsectionList = subsections; |
96 |
|
} |
97 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
98 |
1319
|
public final SubsectionList getSubsectionList() {... |
99 |
1319
|
return subsectionList; |
100 |
|
} |
101 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
102 |
165
|
public boolean equals(final Object obj) {... |
103 |
165
|
if (!(obj instanceof SectionVo)) { |
104 |
8
|
return false; |
105 |
|
} |
106 |
157
|
final SectionVo other = (SectionVo) obj; |
107 |
157
|
return EqualsUtility.equals(getNoNumber(), other.getNoNumber()) |
108 |
|
&& EqualsUtility.equals(getTitle(), other.getTitle()) |
109 |
|
&& EqualsUtility.equals(getIntroduction(), other.getIntroduction()) |
110 |
|
&& EqualsUtility.equals(getSubsectionList(), other.getSubsectionList()); |
111 |
|
} |
112 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (9) |
Complexity: 5 |
Complexity Density: 5 |
|
113 |
212
|
public int hashCode() {... |
114 |
212
|
return (getNoNumber() != null ? getNoNumber().hashCode() : 0) |
115 |
212
|
^ (getTitle() != null ? 1 ^ getTitle().hashCode() : 0) |
116 |
212
|
^ (getIntroduction() != null ? 2 ^ getIntroduction().hashCode() : 0) |
117 |
212
|
^ (getSubsectionList() != null ? 3 ^ getSubsectionList().hashCode() : 0); |
118 |
|
} |
119 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (8) |
Complexity: 1 |
Complexity Density: 0.12 |
|
120 |
172
|
public String toString() {... |
121 |
172
|
final StringBuffer buffer = new StringBuffer(); |
122 |
172
|
buffer.append("Section noNumbering: " + noNumber + "\n"); |
123 |
172
|
buffer.append("Section Title: \n"); |
124 |
172
|
buffer.append(getTitle() + "\n\n"); |
125 |
172
|
buffer.append("Introduction: "); |
126 |
172
|
buffer.append(getIntroduction() + "\n\n"); |
127 |
172
|
buffer.append(getSubsectionList() + "\n"); |
128 |
172
|
return buffer.toString(); |
129 |
|
} |
130 |
|
|
131 |
|
} |