comparison src/main/java/edu/harvard/iq/dataverse/DatasetRelPublication.java @ 10:a50cf11e5178

Rewrite LGDataverse completely upgrading to dataverse4.0
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Tue, 08 Sep 2015 17:00:21 +0200
parents
children
comparison
equal deleted inserted replaced
9:5926d6419569 10:a50cf11e5178
1 /*
2 * To change this license header, choose License Headers in Project Properties.
3 * To change this template file, choose Tools | Templates
4 * and open the template in the editor.
5 */
6
7 package edu.harvard.iq.dataverse;
8
9
10 /**
11 *
12 * @author skraffmiller
13 */
14
15 public class DatasetRelPublication {
16
17
18 private String text;
19 private String idType;
20 private String idNumber;
21 private String url;
22 private String title;
23 private String description;
24 private boolean replicationData;
25 private int displayOrder;
26
27 public int getDisplayOrder() {
28 return displayOrder;
29 }
30 public void setDisplayOrder(int displayOrder) {
31 this.displayOrder = displayOrder;
32 }
33
34 public String getIdNumber() {
35 return idNumber;
36 }
37
38 public void setIdNumber(String idNumber) {
39 this.idNumber = idNumber;
40 }
41
42 public String getIdType() {
43 return idType;
44 }
45
46 public void setIdType(String idType) {
47 this.idType = idType;
48 }
49
50 public String getText() {
51 return text;
52 }
53
54 public void setText(String text) {
55 this.text = text;
56 }
57
58 public String getUrl() {
59 return url;
60 }
61
62 public void setUrl(String url) {
63 this.url = url;
64 }
65
66
67 public String getTitle() {
68 return title;
69 }
70
71 public void setTitle(String title) {
72 this.title = title;
73 }
74
75 public String getDescription() {
76 return description;
77 }
78
79 public void setDescription(String description) {
80 this.description = description;
81 }
82
83 public boolean isEmpty() {
84 return ((text==null || text.trim().equals(""))
85 && (!replicationData)
86 && (idType==null || idType.trim().equals(""))
87 && (idNumber==null || idNumber.trim().equals(""))
88 && (url==null || url.trim().equals("")));
89 }
90
91 }