|
1 |
| |
|
2 |
| |
|
3 |
| |
|
4 |
| |
|
5 |
| |
|
6 |
| |
|
7 |
| |
|
8 |
| |
|
9 |
| |
|
10 |
| |
|
11 |
| |
|
12 |
| |
|
13 |
| |
|
14 |
| |
|
15 |
| |
|
16 |
| |
|
17 |
| |
|
18 |
| package org.qedeq.kernel.bo.module; |
|
19 |
| |
|
20 |
| import org.qedeq.kernel.base.module.Import; |
|
21 |
| import org.qedeq.kernel.base.module.Specification; |
|
22 |
| import org.qedeq.kernel.utility.EqualsUtility; |
|
23 |
| |
|
24 |
| |
|
25 |
| |
|
26 |
| |
|
27 |
| |
|
28 |
| |
|
29 |
| |
|
30 |
| |
|
31 |
| public final class ImportBo implements Import { |
|
32 |
| |
|
33 |
| |
|
34 |
| private String label; |
|
35 |
| |
|
36 |
| |
|
37 |
| private Specification specification; |
|
38 |
| |
|
39 |
| |
|
40 |
| |
|
41 |
| |
|
42 |
| |
|
43 |
| |
|
44 |
| |
|
45 |
| |
|
46 |
0
| public ImportBo(final String label, final Specification specification) {
|
|
47 |
0
| this.label = label;
|
|
48 |
0
| this.specification = specification;
|
|
49 |
| } |
|
50 |
| |
|
51 |
| |
|
52 |
| |
|
53 |
| |
|
54 |
75
| public ImportBo() {
|
|
55 |
| |
|
56 |
| } |
|
57 |
| |
|
58 |
| |
|
59 |
| |
|
60 |
| |
|
61 |
| |
|
62 |
| |
|
63 |
62
| public final void setLabel(final String label) {
|
|
64 |
62
| this.label = label;
|
|
65 |
| } |
|
66 |
| |
|
67 |
335
| public final String getLabel() {
|
|
68 |
335
| return label;
|
|
69 |
| } |
|
70 |
| |
|
71 |
| |
|
72 |
| |
|
73 |
| |
|
74 |
| |
|
75 |
| |
|
76 |
62
| public final void setSpecification(final Specification specification) {
|
|
77 |
62
| this.specification = specification;
|
|
78 |
| } |
|
79 |
| |
|
80 |
335
| public final Specification getSpecification() {
|
|
81 |
335
| return specification;
|
|
82 |
| } |
|
83 |
| |
|
84 |
99
| public boolean equals(final Object obj) {
|
|
85 |
99
| if (!(obj instanceof ImportBo)) {
|
|
86 |
5
| return false;
|
|
87 |
| } |
|
88 |
94
| final ImportBo other = (ImportBo) obj;
|
|
89 |
94
| return EqualsUtility.equals(getLabel(), other.getLabel())
|
|
90 |
| && EqualsUtility.equals(getSpecification(), other.getSpecification()); |
|
91 |
| } |
|
92 |
| |
|
93 |
84
| public int hashCode() {
|
|
94 |
84
| return (getLabel() != null ? getLabel().hashCode() : 0)
|
|
95 |
84
| ^ (getSpecification() != null ? 1 ^ getSpecification().hashCode() : 0);
|
|
96 |
| } |
|
97 |
| |
|
98 |
65
| public String toString() {
|
|
99 |
65
| return label + ":" + specification;
|
|
100 |
| } |
|
101 |
| |
|
102 |
| } |