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