1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package net.sourceforge.javadpkg.plugin.cfg;
20
21 import java.io.File;
22 import java.util.ArrayList;
23 import java.util.List;
24
25 import org.apache.maven.plugins.annotations.Parameter;
26
27
28
29
30
31
32
33
34
35 public class CopyrightConfiguration {
36
37
38
39 @Parameter(name = "file")
40 private File file;
41
42 @Parameter(name = "upstreamName")
43 private String upstreamName;
44
45 @Parameter(name = "upstreamContact")
46 private String upstreamContact;
47
48 @Parameter(name = "source")
49 private String source;
50
51 @Parameter(name = "disclaimer")
52 private String disclaimer;
53
54 @Parameter(name = "comment")
55 private String comment;
56
57 @Parameter(name = "license")
58 private CopyrightLicenseConfiguration license;
59
60 @Parameter(name = "copyright")
61 private String copyright;
62
63 @Parameter(name = "files")
64 private List<CopyrightFilesConfiguration> files;
65
66 @Parameter(name = "licenses")
67 private List<CopyrightLicenseConfiguration> licenses;
68
69
70
71
72
73
74
75 public CopyrightConfiguration() {
76 super();
77
78 this.file = null;
79 this.upstreamName = null;
80 this.upstreamContact = null;
81 this.source = null;
82 this.disclaimer = null;
83 this.comment = null;
84 this.license = null;
85 this.copyright = null;
86 this.files = new ArrayList<>();
87 this.licenses = new ArrayList<>();
88 }
89
90
91
92
93
94
95
96
97
98 public File getFile() {
99 return this.file;
100 }
101
102
103
104
105
106
107
108
109
110
111 public void setFile(File file) {
112 this.file = file;
113 }
114
115
116
117
118
119
120
121
122
123 public String getUpstreamName() {
124 return this.upstreamName;
125 }
126
127
128
129
130
131
132
133
134
135
136 public void setUpstreamName(String upstreamName) {
137 this.upstreamName = upstreamName;
138 }
139
140
141
142
143
144
145
146
147
148
149 public String getUpstreamContact() {
150 return this.upstreamContact;
151 }
152
153
154
155
156
157
158
159
160
161
162 public void setUpstreamContact(String upstreamContact) {
163 this.upstreamContact = upstreamContact;
164 }
165
166
167
168
169
170
171
172
173
174 public String getSource() {
175 return this.source;
176 }
177
178
179
180
181
182
183
184
185
186
187 public void setSource(String source) {
188 this.source = source;
189 }
190
191
192
193
194
195
196
197
198
199 public String getDisclaimer() {
200 return this.disclaimer;
201 }
202
203
204
205
206
207
208
209
210
211
212 public void setDisclaimer(String disclaimer) {
213 this.disclaimer = disclaimer;
214 }
215
216
217
218
219
220
221
222
223
224 public String getComment() {
225 return this.comment;
226 }
227
228
229
230
231
232
233
234
235
236
237 public void setComment(String comment) {
238 this.comment = comment;
239 }
240
241
242
243
244
245
246
247
248
249
250 public CopyrightLicenseConfiguration getLicense() {
251 return this.license;
252 }
253
254
255
256
257
258
259
260
261
262
263 public void setLicense(CopyrightLicenseConfiguration license) {
264 this.license = license;
265 }
266
267
268
269
270
271
272
273
274
275 public String getCopyright() {
276 return this.copyright;
277 }
278
279
280
281
282
283
284
285
286
287
288 public void setCopyright(String copyright) {
289 this.copyright = copyright;
290 }
291
292
293
294
295
296
297
298
299
300 public List<CopyrightFilesConfiguration> getFiles() {
301 return (new ArrayList<>(this.files));
302 }
303
304
305
306
307
308
309
310
311
312
313 public void setFiles(List<CopyrightFilesConfiguration> files) {
314 if (files == null) {
315 this.files = new ArrayList<>();
316 } else {
317 this.files = new ArrayList<>(files);
318 }
319 }
320
321
322
323
324
325
326
327
328
329 public List<CopyrightLicenseConfiguration> getLicenses() {
330 return (new ArrayList<>(this.licenses));
331 }
332
333
334
335
336
337
338
339
340
341
342 public void setLicenses(List<CopyrightLicenseConfiguration> licenses) {
343 if (licenses == null) {
344 this.licenses = new ArrayList<>();
345 } else {
346 this.licenses = new ArrayList<>(licenses);
347 }
348 }
349
350
351 }