1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 package gov.nist.secauto.swid.builder;
28
29 import static gov.nist.secauto.swid.builder.util.Util.requireNonEmpty;
30
31 public class MetaBuilder extends AbstractLanguageSpecificBuilder<MetaBuilder> {
32 public static MetaBuilder create() {
33 return new MetaBuilder();
34 }
35
36 private String activationStatus;
37 private String channelType;
38 private String colloquialVersion;
39 private String description;
40 private String edition;
41 private String entitlementDataRequired;
42 private String entitlementKey;
43 private String generator;
44 private String persistentId;
45 private String productBaseName;
46 private String productFamily;
47 private String revision;
48 private String summary;
49 private String unspscCode;
50 private String unspscVersion;
51
52 protected MetaBuilder() {
53 super();
54 }
55
56 @Override
57 public void reset() {
58 this.activationStatus = null;
59 this.channelType = null;
60 this.colloquialVersion = null;
61 this.description = null;
62 this.edition = null;
63 this.entitlementDataRequired = null;
64 this.entitlementKey = null;
65 this.generator = null;
66 this.persistentId = null;
67 this.productBaseName = null;
68 this.productFamily = null;
69 this.revision = null;
70 this.summary = null;
71 this.unspscCode = null;
72 this.unspscVersion = null;
73 }
74
75
76
77
78
79
80 public String getActivationStatus() {
81 return activationStatus;
82 }
83
84
85
86
87
88
89
90
91 public MetaBuilder setActivationStatus(String activationStatus) {
92 requireNonEmpty(activationStatus, "activationStatus");
93 this.activationStatus = activationStatus;
94 return this;
95 }
96
97
98
99
100
101
102 public String getChannelType() {
103 return channelType;
104 }
105
106
107
108
109
110
111
112
113 public MetaBuilder setChannelType(String channelType) {
114 requireNonEmpty(channelType, "channelType");
115 this.channelType = channelType;
116 return this;
117 }
118
119
120
121
122
123
124 public String getColloquialVersion() {
125 return colloquialVersion;
126 }
127
128
129
130
131
132
133
134
135 public MetaBuilder setColloquialVersion(String colloquialVersion) {
136 requireNonEmpty(colloquialVersion, "colloquialVersion");
137 this.colloquialVersion = colloquialVersion;
138 return this;
139 }
140
141
142
143
144
145
146 public String getDescription() {
147 return description;
148 }
149
150
151
152
153
154
155
156
157 public MetaBuilder setDescription(String description) {
158 requireNonEmpty(description, "description");
159 this.description = description;
160 return this;
161 }
162
163
164
165
166
167
168 public String getEdition() {
169 return edition;
170 }
171
172
173
174
175
176
177
178
179 public MetaBuilder setEdition(String edition) {
180 requireNonEmpty(edition, "edition");
181 this.edition = edition;
182 return this;
183 }
184
185
186
187
188
189
190 public String getEntitlementDataRequired() {
191 return entitlementDataRequired;
192 }
193
194
195
196
197
198
199
200
201 public MetaBuilder setEntitlementDataRequired(String entitlementDataRequired) {
202 requireNonEmpty(entitlementDataRequired, "entitlementDataRequired");
203 this.entitlementDataRequired = entitlementDataRequired;
204 return this;
205 }
206
207
208
209
210
211
212 public String getEntitlementKey() {
213 return entitlementKey;
214 }
215
216
217
218
219
220
221
222
223 public MetaBuilder setEntitlementKey(String entitlementKey) {
224 requireNonEmpty(entitlementKey, "entitlementKey");
225 this.entitlementKey = entitlementKey;
226 return this;
227 }
228
229
230
231
232
233
234 public String getGenerator() {
235 return generator;
236 }
237
238
239
240
241
242
243
244
245 public MetaBuilder setGenerator(String generator) {
246 requireNonEmpty(generator, "generator");
247 this.generator = generator;
248 return this;
249 }
250
251
252
253
254
255
256 public String getPersistentId() {
257 return persistentId;
258 }
259
260
261
262
263
264
265
266
267 public MetaBuilder setPersistentId(String persistentId) {
268 requireNonEmpty(persistentId, "persistentId");
269 this.persistentId = persistentId;
270 return this;
271 }
272
273
274
275
276
277
278 public String getProductBaseName() {
279 return productBaseName;
280 }
281
282
283
284
285
286
287
288
289 public MetaBuilder setProductBaseName(String productBaseName) {
290 requireNonEmpty(productBaseName, "productBaseName");
291 this.productBaseName = productBaseName;
292 return this;
293 }
294
295
296
297
298
299
300 public String getProductFamily() {
301 return productFamily;
302 }
303
304
305
306
307
308
309
310
311 public MetaBuilder setProductFamily(String productFamily) {
312 requireNonEmpty(productFamily, "productFamily");
313 this.productFamily = productFamily;
314 return this;
315 }
316
317
318
319
320
321
322 public String getRevision() {
323 return revision;
324 }
325
326
327
328
329
330
331
332
333 public MetaBuilder setRevision(String revision) {
334 requireNonEmpty(revision, "revision");
335 this.revision = revision;
336 return this;
337 }
338
339
340
341
342
343
344 public String getSummary() {
345 return summary;
346 }
347
348
349
350
351
352
353
354
355 public MetaBuilder setSummary(String summary) {
356 requireNonEmpty(summary, "summary");
357 this.summary = summary;
358 return this;
359 }
360
361
362
363
364
365
366 public String getUnspscCode() {
367 return unspscCode;
368 }
369
370
371
372
373
374
375
376
377 public MetaBuilder setUnspscCode(String unspscCode) {
378 requireNonEmpty(unspscCode, "unspscCode");
379 this.unspscCode = unspscCode;
380 return this;
381 }
382
383
384
385
386
387
388 public String getUnspscVersion() {
389 return unspscVersion;
390 }
391
392
393
394
395
396
397
398
399 public MetaBuilder setUnspscVersion(String unspscVersion) {
400 requireNonEmpty(unspscVersion, "unspscVersion");
401 this.unspscVersion = unspscVersion;
402 return this;
403 }
404
405 @Override
406 public void validate() throws ValidationException {
407 super.validate();
408 }
409 }