Mercurial > hg > LGDataverses
comparison src/main/java/edu/harvard/iq/dataverse/DatasetKeyword.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 package edu.harvard.iq.dataverse; | |
| 2 | |
| 3 /** | |
| 4 * | |
| 5 * @author skraffmiller | |
| 6 */ | |
| 7 | |
| 8 public class DatasetKeyword { | |
| 9 | |
| 10 private int displayOrder; | |
| 11 public int getDisplayOrder() { | |
| 12 return this.displayOrder; | |
| 13 } | |
| 14 public void setDisplayOrder(int displayOrder) { | |
| 15 this.displayOrder = displayOrder; | |
| 16 } | |
| 17 | |
| 18 private DatasetField value; | |
| 19 public DatasetField getValue() { | |
| 20 return this.value; | |
| 21 } | |
| 22 public void setValue(DatasetField value) { | |
| 23 this.value = value; | |
| 24 } | |
| 25 | |
| 26 private DatasetVersion datasetVersion; | |
| 27 public DatasetVersion getDatasetVersion() { | |
| 28 return datasetVersion; | |
| 29 } | |
| 30 public void setDatasetVersion(DatasetVersion metadata) { | |
| 31 this.datasetVersion = metadata; | |
| 32 } | |
| 33 /* | |
| 34 @Version | |
| 35 private Long version; | |
| 36 public Long getVersion() { | |
| 37 return this.version; | |
| 38 } | |
| 39 public void setVersion(Long version) { | |
| 40 this.version = version; | |
| 41 } */ | |
| 42 | |
| 43 private DatasetField vocab; | |
| 44 public DatasetField getVocab() { | |
| 45 return this.vocab; | |
| 46 } | |
| 47 public void setVocab(DatasetField vocab) { | |
| 48 this.vocab = vocab; | |
| 49 } | |
| 50 | |
| 51 private DatasetField vocabURI; | |
| 52 public DatasetField getVocabURI() { | |
| 53 return this.vocabURI; | |
| 54 } | |
| 55 public void setVocabURI(DatasetField vocabURI) { | |
| 56 this.vocabURI = vocabURI; | |
| 57 } | |
| 58 | |
| 59 | |
| 60 public boolean isEmpty() { | |
| 61 /*return ((value==null || value.getValue().trim().equals("")) | |
| 62 && (vocab==null || vocab.getValue().trim().equals("")) | |
| 63 && (vocabURI==null || vocabURI.getValue().trim().equals("")));*/ | |
| 64 return false; | |
| 65 } | |
| 66 | |
| 67 | |
| 68 } |
