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.FormalProof; |
20 |
|
import org.qedeq.kernel.se.base.module.FormalProofLineList; |
21 |
|
import org.qedeq.kernel.se.base.module.LatexList; |
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
@author |
28 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (45) |
Complexity: 18 |
Complexity Density: 0.9 |
|
29 |
|
public class FormalProofVo implements FormalProof { |
30 |
|
|
31 |
|
|
32 |
|
private LatexList precedingText; |
33 |
|
|
34 |
|
|
35 |
|
private FormalProofLineList formalProofLineList; |
36 |
|
|
37 |
|
|
38 |
|
private LatexList succeedingText; |
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
43 |
110
|
public FormalProofVo() {... |
44 |
|
|
45 |
|
} |
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
@param |
51 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
52 |
2
|
public FormalProofVo(final FormalProofLineList formalProofLines) {... |
53 |
2
|
this.formalProofLineList = formalProofLines; |
54 |
|
} |
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
|
59 |
|
@param |
60 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
61 |
47
|
public final void setPrecedingText(final LatexListVo precedingText) {... |
62 |
47
|
this.precedingText = precedingText; |
63 |
|
} |
64 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
65 |
670
|
public final LatexList getPrecedingText() {... |
66 |
670
|
return precedingText; |
67 |
|
} |
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
@param |
73 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
74 |
87
|
public final void setFormalProofLineList(final FormalProofLineList formalProofLines) {... |
75 |
87
|
this.formalProofLineList = formalProofLines; |
76 |
|
} |
77 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
78 |
726
|
public final FormalProofLineList getFormalProofLineList() {... |
79 |
726
|
return formalProofLineList; |
80 |
|
} |
81 |
|
|
82 |
|
|
83 |
|
|
84 |
|
|
85 |
|
@param |
86 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
87 |
47
|
public final void setSucceedingText(final LatexListVo succeedingText) {... |
88 |
47
|
this.succeedingText = succeedingText; |
89 |
|
} |
90 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
91 |
642
|
public final LatexList getSucceedingText() {... |
92 |
642
|
return succeedingText; |
93 |
|
} |
94 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
95 |
97
|
public boolean equals(final Object obj) {... |
96 |
97
|
if (!(obj instanceof FormalProofVo)) { |
97 |
7
|
return false; |
98 |
|
} |
99 |
90
|
final FormalProofVo other = (FormalProofVo) obj; |
100 |
90
|
return EqualsUtility.equals(getPrecedingText(), other.getPrecedingText()) |
101 |
|
&& EqualsUtility.equals(getFormalProofLineList(), other.getFormalProofLineList()) |
102 |
|
&& EqualsUtility.equals(getSucceedingText(), other.getSucceedingText()); |
103 |
|
} |
104 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (7) |
Complexity: 4 |
Complexity Density: 4 |
|
105 |
132
|
public int hashCode() {... |
106 |
132
|
return (getPrecedingText() != null ? getPrecedingText().hashCode() : 0) |
107 |
132
|
^ (getFormalProofLineList() != null ? 2 ^ getFormalProofLineList().hashCode() : 0) |
108 |
132
|
^ (getSucceedingText() != null ? 3 ^ getSucceedingText().hashCode() : 0); |
109 |
|
} |
110 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (14) |
Complexity: 4 |
Complexity Density: 0.5 |
|
111 |
107
|
public String toString() {... |
112 |
107
|
final StringBuffer result = new StringBuffer(); |
113 |
107
|
if (getPrecedingText() != null) { |
114 |
91
|
result.append(getPrecedingText()); |
115 |
|
} |
116 |
107
|
if (getFormalProofLineList() != null) { |
117 |
97
|
result.append("Formal Proof: " + getFormalProofLineList()); |
118 |
|
} |
119 |
107
|
if (getSucceedingText() != null) { |
120 |
89
|
result.append(getSucceedingText()); |
121 |
|
} |
122 |
107
|
return result.toString(); |
123 |
|
} |
124 |
|
|
125 |
|
|
126 |
|
} |