1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package net.sourceforge.javadpkg.control.impl;
20
21 import net.sourceforge.javadpkg.control.Architecture;
22 import net.sourceforge.javadpkg.control.Control;
23 import net.sourceforge.javadpkg.control.Homepage;
24 import net.sourceforge.javadpkg.control.PackageDependency;
25 import net.sourceforge.javadpkg.control.PackageMaintainer;
26 import net.sourceforge.javadpkg.control.PackageMultiArchitecture;
27 import net.sourceforge.javadpkg.control.PackageVersion;
28
29
30
31
32
33
34
35
36
37
38 public abstract class AbstractControl implements Control {
39
40
41
42 private PackageDependency source;
43
44 private PackageVersion version;
45
46 private Architecture architecture;
47
48 private PackageMultiArchitecture multiArchitecture;
49
50 private PackageMaintainer maintainer;
51
52 private PackageMaintainer originalMaintainer;
53
54 private Homepage homepage;
55
56
57
58
59
60
61
62 public AbstractControl() {
63 super();
64
65 this.source = null;
66 this.version = null;
67 this.architecture = null;
68 this.multiArchitecture = null;
69 this.maintainer = null;
70 this.homepage = null;
71 }
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92 public AbstractControl(PackageDependency source, PackageVersion version, Architecture architecture,
93 PackageMultiArchitecture multiArchitecture, PackageMaintainer maintainer, Homepage homepage) {
94
95 super();
96
97 this.source = source;
98 this.version = version;
99 this.architecture = architecture;
100 this.multiArchitecture = multiArchitecture;
101 this.maintainer = maintainer;
102 this.homepage = homepage;
103 }
104
105
106 @Override
107 public PackageDependency getSource() {
108 return this.source;
109 }
110
111
112
113
114
115
116
117
118
119
120 public void setSource(PackageDependency source) {
121 this.source = source;
122 }
123
124
125 @Override
126 public PackageVersion getVersion() {
127 return this.version;
128 }
129
130
131
132
133
134
135
136
137
138
139 public void setVersion(PackageVersion version) {
140 this.version = version;
141 }
142
143
144 @Override
145 public Architecture getArchitecture() {
146 return this.architecture;
147 }
148
149
150
151
152
153
154
155
156
157
158 public void setArchitecture(Architecture architecture) {
159 this.architecture = architecture;
160 }
161
162
163 @Override
164 public PackageMultiArchitecture getMultiArchitecture() {
165 return this.multiArchitecture;
166 }
167
168
169
170
171
172
173
174
175
176
177 public void setMultiArchitecture(PackageMultiArchitecture multiArchitecture) {
178 this.multiArchitecture = multiArchitecture;
179 }
180
181
182 @Override
183 public PackageMaintainer getMaintainer() {
184 return this.maintainer;
185 }
186
187
188
189
190
191
192
193
194
195
196 public void setMaintainer(PackageMaintainer maintainer) {
197 this.maintainer = maintainer;
198 }
199
200
201 @Override
202 public PackageMaintainer getOriginalMaintainer() {
203 return this.originalMaintainer;
204 }
205
206
207
208
209
210
211
212
213
214
215 public void setOriginalMaintainer(PackageMaintainer originalMaintainer) {
216 this.originalMaintainer = originalMaintainer;
217 }
218
219
220 @Override
221 public Homepage getHomepage() {
222 return this.homepage;
223 }
224
225
226
227
228
229
230
231
232
233
234 public void setHomepage(Homepage homepage) {
235 this.homepage = homepage;
236 }
237
238
239 }