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.AuthorList; |
20 |
|
import org.qedeq.kernel.se.base.module.Header; |
21 |
|
import org.qedeq.kernel.se.base.module.ImportList; |
22 |
|
import org.qedeq.kernel.se.base.module.LatexList; |
23 |
|
import org.qedeq.kernel.se.base.module.Specification; |
24 |
|
import org.qedeq.kernel.se.base.module.UsedByList; |
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
@author |
32 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (67) |
Complexity: 27 |
Complexity Density: 0.87 |
|
33 |
|
public class HeaderVo implements Header { |
34 |
|
|
35 |
|
|
36 |
|
private Specification specification; |
37 |
|
|
38 |
|
|
39 |
|
private LatexList title; |
40 |
|
|
41 |
|
|
42 |
|
private LatexList summary; |
43 |
|
|
44 |
|
|
45 |
|
private AuthorList authorList; |
46 |
|
|
47 |
|
|
48 |
|
private ImportList importList; |
49 |
|
|
50 |
|
|
51 |
|
private UsedByList usedByList; |
52 |
|
|
53 |
|
|
54 |
|
private String email; |
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
59 |
89
|
public HeaderVo() {... |
60 |
|
|
61 |
|
} |
62 |
|
|
63 |
|
|
64 |
|
|
65 |
|
@param |
66 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
67 |
33
|
public final void setSpecification(final SpecificationVo specification) {... |
68 |
33
|
this.specification = specification; |
69 |
|
} |
70 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
71 |
556
|
public final Specification getSpecification() {... |
72 |
556
|
return specification; |
73 |
|
} |
74 |
|
|
75 |
|
|
76 |
|
|
77 |
|
|
78 |
|
@param |
79 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
80 |
32
|
public final void setTitle(final LatexListVo title) {... |
81 |
32
|
this.title = title; |
82 |
|
} |
83 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
84 |
497
|
public final LatexList getTitle() {... |
85 |
497
|
return title; |
86 |
|
} |
87 |
|
|
88 |
|
|
89 |
|
|
90 |
|
|
91 |
|
@param |
92 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
93 |
32
|
public final void setSummary(final LatexListVo summary) {... |
94 |
32
|
this.summary = summary; |
95 |
|
} |
96 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
97 |
529
|
public final LatexList getSummary() {... |
98 |
529
|
return summary; |
99 |
|
} |
100 |
|
|
101 |
|
|
102 |
|
|
103 |
|
|
104 |
|
@param |
105 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
106 |
33
|
public final void setAuthorList(final AuthorListVo authors) {... |
107 |
33
|
this.authorList = authors; |
108 |
|
} |
109 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
110 |
514
|
public final AuthorList getAuthorList() {... |
111 |
514
|
return authorList; |
112 |
|
} |
113 |
|
|
114 |
|
|
115 |
|
|
116 |
|
|
117 |
|
@param |
118 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
119 |
35
|
public final void setImportList(final ImportListVo imports) {... |
120 |
35
|
this.importList = imports; |
121 |
|
} |
122 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
123 |
525
|
public final ImportList getImportList() {... |
124 |
525
|
return importList; |
125 |
|
} |
126 |
|
|
127 |
|
|
128 |
|
|
129 |
|
|
130 |
|
@param |
131 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
132 |
34
|
public final void setUsedByList(final UsedByListVo usedby) {... |
133 |
34
|
this.usedByList = usedby; |
134 |
|
} |
135 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
136 |
483
|
public final UsedByList getUsedByList() {... |
137 |
483
|
return usedByList; |
138 |
|
} |
139 |
|
|
140 |
|
|
141 |
|
|
142 |
|
|
143 |
|
@param |
144 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
145 |
31
|
public final void setEmail(final String email) {... |
146 |
31
|
this.email = email; |
147 |
|
} |
148 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
149 |
555
|
public final String getEmail() {... |
150 |
555
|
return email; |
151 |
|
} |
152 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
153 |
131
|
public boolean equals(final Object obj) {... |
154 |
131
|
if (!(obj instanceof HeaderVo)) { |
155 |
12
|
return false; |
156 |
|
} |
157 |
119
|
final HeaderVo other = (HeaderVo) obj; |
158 |
119
|
return EqualsUtility.equals(getSpecification(), other.getSpecification()) |
159 |
|
&& EqualsUtility.equals(getTitle(), other.getTitle()) |
160 |
|
&& EqualsUtility.equals(getSummary(), other.getSummary()) |
161 |
|
&& EqualsUtility.equals(getAuthorList(), other.getAuthorList()) |
162 |
|
&& EqualsUtility.equals(getImportList(), other.getImportList()) |
163 |
|
&& EqualsUtility.equals(getUsedByList(), other.getUsedByList()) |
164 |
|
&& EqualsUtility.equals(getEmail(), other.getEmail()); |
165 |
|
} |
166 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (15) |
Complexity: 8 |
Complexity Density: 8 |
|
167 |
128
|
public int hashCode() {... |
168 |
128
|
return (getSpecification() != null ? getSpecification().hashCode() : 0) |
169 |
128
|
^ (getTitle() != null ? 1 ^ getTitle().hashCode() : 0) |
170 |
128
|
^ (getSummary() != null ? 2 ^ getSummary().hashCode() : 0) |
171 |
128
|
^ (getAuthorList() != null ? 3 ^ getAuthorList().hashCode() : 0) |
172 |
128
|
^ (getImportList() != null ? 4 ^ getImportList().hashCode() : 0) |
173 |
128
|
^ (getUsedByList() != null ? 5 ^ getUsedByList().hashCode() : 0) |
174 |
128
|
^ (getEmail() != null ? 6 ^ getEmail().hashCode() : 0); |
175 |
|
} |
176 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (14) |
Complexity: 2 |
Complexity Density: 0.17 |
|
177 |
72
|
public String toString() {... |
178 |
72
|
final StringBuffer buffer = new StringBuffer("Header\n"); |
179 |
72
|
buffer.append(getSpecification() + "\n"); |
180 |
72
|
buffer.append("Title: "); |
181 |
72
|
buffer.append(getTitle() + "\n\n"); |
182 |
72
|
buffer.append("Abstract: "); |
183 |
72
|
buffer.append(getSummary() + "\n\n"); |
184 |
72
|
buffer.append(getAuthorList() + "\n"); |
185 |
72
|
buffer.append(getImportList() + "\n"); |
186 |
72
|
buffer.append(getUsedByList() + "\n"); |
187 |
72
|
if (getEmail() != null) { |
188 |
54
|
buffer.append("\nModule email: <" + getEmail() + ">"); |
189 |
|
} |
190 |
72
|
return buffer.toString(); |
191 |
|
} |
192 |
|
|
193 |
|
} |