1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| |
8 |
| |
9 |
| |
10 |
| |
11 |
| |
12 |
| |
13 |
| |
14 |
| |
15 |
| |
16 |
| |
17 |
| |
18 |
| package org.qedeq.kernel.dto.module; |
19 |
| |
20 |
| import org.qedeq.kernel.base.module.LatexList; |
21 |
| import org.qedeq.kernel.base.module.Proof; |
22 |
| import org.qedeq.kernel.utility.EqualsUtility; |
23 |
| |
24 |
| |
25 |
| |
26 |
| |
27 |
| |
28 |
| |
29 |
| |
30 |
| |
31 |
| |
32 |
| |
33 |
| public final class ProofVo implements Proof { |
34 |
| |
35 |
| |
36 |
| private String kind; |
37 |
| |
38 |
| |
39 |
| private String level; |
40 |
| |
41 |
| |
42 |
| private LatexList nonFormalProof; |
43 |
| |
44 |
| |
45 |
| |
46 |
| |
47 |
122
| public ProofVo() {
|
48 |
| |
49 |
| } |
50 |
| |
51 |
561
| public String getKind() {
|
52 |
561
| return kind;
|
53 |
| } |
54 |
| |
55 |
| |
56 |
| |
57 |
| |
58 |
| |
59 |
| |
60 |
89
| public final void setKind(final String kind) {
|
61 |
89
| this.kind = kind;
|
62 |
| } |
63 |
| |
64 |
563
| public String getLevel() {
|
65 |
563
| return level;
|
66 |
| } |
67 |
| |
68 |
| |
69 |
| |
70 |
| |
71 |
| |
72 |
| |
73 |
89
| public final void setLevel(final String level) {
|
74 |
89
| this.level = level;
|
75 |
| } |
76 |
| |
77 |
| |
78 |
| |
79 |
| |
80 |
| |
81 |
| |
82 |
104
| public final void setNonFormalProof(final LatexList nonFormalProof) {
|
83 |
104
| this.nonFormalProof = nonFormalProof;
|
84 |
| } |
85 |
| |
86 |
615
| public final LatexList getNonFormalProof() {
|
87 |
615
| return nonFormalProof;
|
88 |
| } |
89 |
| |
90 |
137
| public boolean equals(final Object obj) {
|
91 |
137
| if (!(obj instanceof ProofVo)) {
|
92 |
8
| return false;
|
93 |
| } |
94 |
129
| final ProofVo other = (ProofVo) obj;
|
95 |
129
| return EqualsUtility.equals(getKind(), other.getKind())
|
96 |
| && EqualsUtility.equals(getLevel(), other.getLevel()) |
97 |
| && EqualsUtility.equals(getNonFormalProof(), other.getNonFormalProof()); |
98 |
| } |
99 |
| |
100 |
119
| public int hashCode() {
|
101 |
119
| return (getKind() != null ? getKind().hashCode() : 0)
|
102 |
119
| ^ (getLevel() != null ? 1 ^ getLevel().hashCode() : 0)
|
103 |
119
| ^ (getNonFormalProof() != null ? 2 ^ getNonFormalProof().hashCode() : 0);
|
104 |
| } |
105 |
| |
106 |
90
| public String toString() {
|
107 |
90
| return "Proof (" + getKind() + ", " + getLevel() + "): " + getNonFormalProof();
|
108 |
| } |
109 |
| |
110 |
| } |