1
|
package eu.dnetlib.datasource.publisher.model;
|
2
|
|
3
|
import java.util.List;
|
4
|
import java.util.Objects;
|
5
|
|
6
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
7
|
import io.swagger.annotations.ApiModel;
|
8
|
import io.swagger.annotations.ApiModelProperty;
|
9
|
|
10
|
/**
|
11
|
* Datasource
|
12
|
*/
|
13
|
@ApiModel
|
14
|
@JsonAutoDetect
|
15
|
public class Datasource {
|
16
|
|
17
|
private String id = null;
|
18
|
private String officialname = null;
|
19
|
private String englishname = null;
|
20
|
private String websiteurl = null;
|
21
|
private String logourl = null;
|
22
|
private String contactemail = null;
|
23
|
private String countrycode = null;
|
24
|
private String countryname = null;
|
25
|
private String organization = null;
|
26
|
private double latitude;
|
27
|
private double longitude;
|
28
|
private String timezone = null;
|
29
|
private String collectedfrom = null;
|
30
|
private String dateofvalidation = null;
|
31
|
private String registeredby = null;
|
32
|
private String datasourceclass = null;
|
33
|
private String typology = null;
|
34
|
private String activationid = null;
|
35
|
private String description = null;
|
36
|
private String issn = null;
|
37
|
private String eissn = null;
|
38
|
private String lissn = null;
|
39
|
private List<Api> api = null;
|
40
|
|
41
|
public Datasource id(String id) {
|
42
|
this.id = id;
|
43
|
return this;
|
44
|
}
|
45
|
|
46
|
/**
|
47
|
* Get id
|
48
|
*
|
49
|
* @return id
|
50
|
**/
|
51
|
@ApiModelProperty(required = true, value = "")
|
52
|
public String getId() {
|
53
|
return id;
|
54
|
}
|
55
|
|
56
|
public void setId(String id) {
|
57
|
this.id = id;
|
58
|
}
|
59
|
|
60
|
public Datasource officialname(String officialname) {
|
61
|
this.officialname = officialname;
|
62
|
return this;
|
63
|
}
|
64
|
|
65
|
/**
|
66
|
* Get englishname
|
67
|
*
|
68
|
* @return englishname
|
69
|
**/
|
70
|
public String getEnglishname() {
|
71
|
return englishname;
|
72
|
}
|
73
|
|
74
|
public void setEnglishname(String englishname) {
|
75
|
this.englishname = englishname;
|
76
|
}
|
77
|
|
78
|
public Datasource englishname(String englishname) {
|
79
|
this.englishname = englishname;
|
80
|
return this;
|
81
|
}
|
82
|
|
83
|
/**
|
84
|
* Get officialname
|
85
|
*
|
86
|
* @return officialname
|
87
|
**/
|
88
|
@ApiModelProperty(required = true, value = "")
|
89
|
public String getOfficialname() {
|
90
|
return officialname;
|
91
|
}
|
92
|
|
93
|
public void setOfficialname(String officialname) {
|
94
|
this.officialname = officialname;
|
95
|
}
|
96
|
|
97
|
|
98
|
public Datasource websiteurl(String websiteurl) {
|
99
|
this.websiteurl = websiteurl;
|
100
|
return this;
|
101
|
}
|
102
|
|
103
|
/**
|
104
|
* Get websiteurl
|
105
|
*
|
106
|
* @return websiteurl
|
107
|
**/
|
108
|
public String getWebsiteurl() {
|
109
|
return websiteurl;
|
110
|
}
|
111
|
|
112
|
public void setWebsiteurl(String websiteurl) {
|
113
|
this.websiteurl = websiteurl;
|
114
|
}
|
115
|
|
116
|
public Datasource logourl(String logourl) {
|
117
|
this.logourl = logourl;
|
118
|
return this;
|
119
|
}
|
120
|
|
121
|
/**
|
122
|
* Get logourl
|
123
|
*
|
124
|
* @return logourl
|
125
|
**/
|
126
|
public String getLogourl() {
|
127
|
return logourl;
|
128
|
}
|
129
|
|
130
|
public void setLogourl(String logourl) {
|
131
|
this.logourl = logourl;
|
132
|
}
|
133
|
|
134
|
public Datasource contactemail(String contactemail) {
|
135
|
this.contactemail = contactemail;
|
136
|
return this;
|
137
|
}
|
138
|
|
139
|
/**
|
140
|
* Get contactemail
|
141
|
*
|
142
|
* @return contactemail
|
143
|
**/
|
144
|
public String getContactemail() {
|
145
|
return contactemail;
|
146
|
}
|
147
|
|
148
|
public void setContactemail(String contactemail) {
|
149
|
this.contactemail = contactemail;
|
150
|
}
|
151
|
|
152
|
public Datasource countrycode(String countrycode) {
|
153
|
this.countrycode = countrycode;
|
154
|
return this;
|
155
|
}
|
156
|
|
157
|
/**
|
158
|
* Get countrycode
|
159
|
*
|
160
|
* @return countrycode
|
161
|
**/
|
162
|
public String getCountrycode() {
|
163
|
return countrycode;
|
164
|
}
|
165
|
|
166
|
public void setCountrycode(String countrycode) {
|
167
|
this.countrycode = countrycode;
|
168
|
}
|
169
|
|
170
|
public Datasource countryname(String countryname) {
|
171
|
this.countryname = countryname;
|
172
|
return this;
|
173
|
}
|
174
|
|
175
|
/**
|
176
|
* Get countryname
|
177
|
*
|
178
|
* @return countryname
|
179
|
**/
|
180
|
public String getCountryname() {
|
181
|
return countryname;
|
182
|
}
|
183
|
|
184
|
public void setCountryname(String countryname) {
|
185
|
this.countryname = countryname;
|
186
|
}
|
187
|
|
188
|
public Datasource organization(String organization) {
|
189
|
this.organization = organization;
|
190
|
return this;
|
191
|
}
|
192
|
|
193
|
/**
|
194
|
* Get organization
|
195
|
*
|
196
|
* @return organization
|
197
|
**/
|
198
|
public String getOrganization() {
|
199
|
return organization;
|
200
|
}
|
201
|
|
202
|
public void setOrganization(String organization) {
|
203
|
this.organization = organization;
|
204
|
}
|
205
|
|
206
|
public Datasource latitude(double latitude) {
|
207
|
this.latitude = latitude;
|
208
|
return this;
|
209
|
}
|
210
|
|
211
|
/**
|
212
|
* Get latitude
|
213
|
*
|
214
|
* @return latitude
|
215
|
**/
|
216
|
public double getLatitude() {
|
217
|
return latitude;
|
218
|
}
|
219
|
|
220
|
public void setLatitude(double latitude) {
|
221
|
this.latitude = latitude;
|
222
|
}
|
223
|
|
224
|
public Datasource longitude(double longitude) {
|
225
|
this.longitude = longitude;
|
226
|
return this;
|
227
|
}
|
228
|
|
229
|
/**
|
230
|
* Get longitude
|
231
|
*
|
232
|
* @return longitude
|
233
|
**/
|
234
|
public double getLongitude() {
|
235
|
return longitude;
|
236
|
}
|
237
|
|
238
|
public void setLongitude(double longitude) {
|
239
|
this.longitude = longitude;
|
240
|
}
|
241
|
|
242
|
public Datasource timezone(String timezone) {
|
243
|
this.timezone = timezone;
|
244
|
return this;
|
245
|
}
|
246
|
|
247
|
/**
|
248
|
* Get timezone
|
249
|
*
|
250
|
* @return timezone
|
251
|
**/
|
252
|
public String getTimezone() {
|
253
|
return timezone;
|
254
|
}
|
255
|
|
256
|
public void setTimezone(String timezone) {
|
257
|
this.timezone = timezone;
|
258
|
}
|
259
|
|
260
|
public Datasource collectedfrom(String collectedfrom) {
|
261
|
this.collectedfrom = collectedfrom;
|
262
|
return this;
|
263
|
}
|
264
|
|
265
|
/**
|
266
|
* Get collectedfrom
|
267
|
*
|
268
|
* @return collectedfrom
|
269
|
**/
|
270
|
public String getCollectedfrom() {
|
271
|
return collectedfrom;
|
272
|
}
|
273
|
|
274
|
public void setCollectedfrom(String collectedfrom) {
|
275
|
this.collectedfrom = collectedfrom;
|
276
|
}
|
277
|
|
278
|
public Datasource dateofvalidation(String dateofvalidation) {
|
279
|
this.dateofvalidation = dateofvalidation;
|
280
|
return this;
|
281
|
}
|
282
|
|
283
|
/**
|
284
|
* Get dateofvalidation
|
285
|
*
|
286
|
* @return dateofvalidation
|
287
|
**/
|
288
|
public String getDateofvalidation() {
|
289
|
return dateofvalidation;
|
290
|
}
|
291
|
|
292
|
public void setDateofvalidation(String dateofvalidation) {
|
293
|
this.dateofvalidation = dateofvalidation;
|
294
|
}
|
295
|
|
296
|
public Datasource registeredby(String registeredby) {
|
297
|
this.registeredby = registeredby;
|
298
|
return this;
|
299
|
}
|
300
|
|
301
|
/**
|
302
|
* Get registeredby
|
303
|
*
|
304
|
* @return registeredby
|
305
|
**/
|
306
|
public String getRegisteredby() {
|
307
|
return registeredby;
|
308
|
}
|
309
|
|
310
|
public void setRegisteredby(String registeredby) {
|
311
|
this.registeredby = registeredby;
|
312
|
}
|
313
|
|
314
|
public Datasource datasourceclass(String datasourcecclass) {
|
315
|
this.datasourceclass = datasourcecclass;
|
316
|
return this;
|
317
|
}
|
318
|
|
319
|
/**
|
320
|
* Get datasourcecclass
|
321
|
*
|
322
|
* @return datasourcecclass
|
323
|
**/
|
324
|
public String getDatasourceclass() {
|
325
|
return datasourceclass;
|
326
|
}
|
327
|
|
328
|
public void setDatasourcecclass(String datasourcecclass) {
|
329
|
this.datasourceclass = datasourcecclass;
|
330
|
}
|
331
|
|
332
|
public Datasource typology(String typology) {
|
333
|
this.typology = typology;
|
334
|
return this;
|
335
|
}
|
336
|
|
337
|
/**
|
338
|
* Get typology
|
339
|
*
|
340
|
* @return typology
|
341
|
**/
|
342
|
public String getTypology() {
|
343
|
return typology;
|
344
|
}
|
345
|
|
346
|
public void setTypology(String typology) {
|
347
|
this.typology = typology;
|
348
|
}
|
349
|
|
350
|
public Datasource activationid(String activationid) {
|
351
|
this.activationid = activationid;
|
352
|
return this;
|
353
|
}
|
354
|
|
355
|
/**
|
356
|
* Get activationid
|
357
|
*
|
358
|
* @return activationid
|
359
|
**/
|
360
|
public String getActivationid() {
|
361
|
return activationid;
|
362
|
}
|
363
|
|
364
|
public void setActivationid(String activationid) {
|
365
|
this.activationid = activationid;
|
366
|
}
|
367
|
|
368
|
public Datasource description(String description) {
|
369
|
this.description = description;
|
370
|
return this;
|
371
|
}
|
372
|
|
373
|
/**
|
374
|
* Get description
|
375
|
*
|
376
|
* @return description
|
377
|
**/
|
378
|
public String getDescription() {
|
379
|
return description;
|
380
|
}
|
381
|
|
382
|
public void setDescription(String description) {
|
383
|
this.description = description;
|
384
|
}
|
385
|
|
386
|
public Datasource issn(String issn) {
|
387
|
this.issn = issn;
|
388
|
return this;
|
389
|
}
|
390
|
|
391
|
/**
|
392
|
* Get issn
|
393
|
*
|
394
|
* @return issn
|
395
|
**/
|
396
|
public String getIssn() {
|
397
|
return issn;
|
398
|
}
|
399
|
|
400
|
public void setIssn(String issn) {
|
401
|
this.issn = issn;
|
402
|
}
|
403
|
|
404
|
public Datasource eissn(String eissn) {
|
405
|
this.eissn = eissn;
|
406
|
return this;
|
407
|
}
|
408
|
|
409
|
/**
|
410
|
* Get eissn
|
411
|
*
|
412
|
* @return eissn
|
413
|
**/
|
414
|
public String getEissn() {
|
415
|
return eissn;
|
416
|
}
|
417
|
|
418
|
public void setEissn(String eissn) {
|
419
|
this.eissn = eissn;
|
420
|
}
|
421
|
|
422
|
public Datasource lissn(String lissn) {
|
423
|
this.lissn = lissn;
|
424
|
return this;
|
425
|
}
|
426
|
|
427
|
/**
|
428
|
* Get lissn
|
429
|
*
|
430
|
* @return lissn
|
431
|
**/
|
432
|
public String getLissn() {
|
433
|
return lissn;
|
434
|
}
|
435
|
|
436
|
public void setLissn(String lissn) {
|
437
|
this.lissn = lissn;
|
438
|
}
|
439
|
|
440
|
public Datasource api(List<Api> api) {
|
441
|
this.api = api;
|
442
|
return this;
|
443
|
}
|
444
|
|
445
|
/**
|
446
|
* Get api
|
447
|
*
|
448
|
* @return api
|
449
|
**/
|
450
|
public List<Api> getApi() {
|
451
|
return api;
|
452
|
}
|
453
|
|
454
|
public void setApi(List<Api> api) {
|
455
|
this.api = api;
|
456
|
}
|
457
|
|
458
|
@Override
|
459
|
public boolean equals(Object o) {
|
460
|
if (this == o) {
|
461
|
return true;
|
462
|
}
|
463
|
if (o == null || getClass() != o.getClass()) {
|
464
|
return false;
|
465
|
}
|
466
|
Datasource datasource = (Datasource) o;
|
467
|
return Objects.equals(this.id, datasource.id) &&
|
468
|
Objects.equals(this.officialname, datasource.officialname) &&
|
469
|
Objects.equals(this.englishname, datasource.englishname) &&
|
470
|
Objects.equals(this.websiteurl, datasource.websiteurl) &&
|
471
|
Objects.equals(this.logourl, datasource.logourl) &&
|
472
|
Objects.equals(this.contactemail, datasource.contactemail) &&
|
473
|
Objects.equals(this.countrycode, datasource.countrycode) &&
|
474
|
Objects.equals(this.countryname, datasource.countryname) &&
|
475
|
Objects.equals(this.organization, datasource.organization) &&
|
476
|
Objects.equals(this.latitude, datasource.latitude) &&
|
477
|
Objects.equals(this.longitude, datasource.longitude) &&
|
478
|
Objects.equals(this.timezone, datasource.timezone) &&
|
479
|
Objects.equals(this.collectedfrom, datasource.collectedfrom) &&
|
480
|
Objects.equals(this.dateofvalidation, datasource.dateofvalidation) &&
|
481
|
Objects.equals(this.registeredby, datasource.registeredby) &&
|
482
|
Objects.equals(this.datasourceclass, datasource.datasourceclass) &&
|
483
|
Objects.equals(this.typology, datasource.typology) &&
|
484
|
Objects.equals(this.activationid, datasource.activationid) &&
|
485
|
Objects.equals(this.description, datasource.description) &&
|
486
|
Objects.equals(this.issn, datasource.issn) &&
|
487
|
Objects.equals(this.eissn, datasource.eissn) &&
|
488
|
Objects.equals(this.lissn, datasource.lissn) &&
|
489
|
Objects.equals(this.api, datasource.api);
|
490
|
}
|
491
|
|
492
|
@Override
|
493
|
public int hashCode() {
|
494
|
return Objects.hash(id, officialname, englishname, websiteurl, logourl, contactemail, countrycode, countryname, organization, latitude, longitude, timezone,
|
495
|
collectedfrom, dateofvalidation, registeredby, datasourceclass, typology, activationid, description,
|
496
|
issn, eissn, lissn, api);
|
497
|
}
|
498
|
|
499
|
@Override
|
500
|
public String toString() {
|
501
|
StringBuilder sb = new StringBuilder();
|
502
|
sb.append("class Datasource {\n");
|
503
|
|
504
|
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
505
|
sb.append(" officialname: ").append(toIndentedString(officialname)).append("\n");
|
506
|
sb.append(" englishname: ").append(toIndentedString(englishname)).append("\n");
|
507
|
sb.append(" websiteurl: ").append(toIndentedString(websiteurl)).append("\n");
|
508
|
sb.append(" logourl: ").append(toIndentedString(logourl)).append("\n");
|
509
|
sb.append(" contactemail: ").append(toIndentedString(contactemail)).append("\n");
|
510
|
sb.append(" countrycode: ").append(toIndentedString(countrycode)).append("\n");
|
511
|
sb.append(" countryname: ").append(toIndentedString(countryname)).append("\n");
|
512
|
sb.append(" organization: ").append(toIndentedString(organization)).append("\n");
|
513
|
sb.append(" latitude: ").append(toIndentedString(latitude)).append("\n");
|
514
|
sb.append(" longitude: ").append(toIndentedString(longitude)).append("\n");
|
515
|
sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n");
|
516
|
sb.append(" collectedfrom: ").append(toIndentedString(collectedfrom)).append("\n");
|
517
|
sb.append(" dateofvalidation: ").append(toIndentedString(dateofvalidation)).append("\n");
|
518
|
sb.append(" registeredby: ").append(toIndentedString(registeredby)).append("\n");
|
519
|
sb.append(" datasourcecclass: ").append(toIndentedString(datasourceclass)).append("\n");
|
520
|
sb.append(" typology: ").append(toIndentedString(typology)).append("\n");
|
521
|
sb.append(" activationid: ").append(toIndentedString(activationid)).append("\n");
|
522
|
sb.append(" description: ").append(toIndentedString(description)).append("\n");
|
523
|
sb.append(" issn: ").append(toIndentedString(issn)).append("\n");
|
524
|
sb.append(" eissn: ").append(toIndentedString(eissn)).append("\n");
|
525
|
sb.append(" lissn: ").append(toIndentedString(lissn)).append("\n");
|
526
|
sb.append(" api: ").append(toIndentedString(api)).append("\n");
|
527
|
sb.append("}");
|
528
|
return sb.toString();
|
529
|
}
|
530
|
|
531
|
/**
|
532
|
* Convert the given object to string with each line indented by 4 spaces
|
533
|
* (except the first line).
|
534
|
*/
|
535
|
private String toIndentedString(Object o) {
|
536
|
if (o == null) {
|
537
|
return "null";
|
538
|
}
|
539
|
return o.toString().replace("\n", "\n ");
|
540
|
}
|
541
|
}
|
542
|
|