diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/java/edu/harvard/iq/dataverse/DatasetKeyword.java	Tue Sep 08 17:00:21 2015 +0200
@@ -0,0 +1,68 @@
+package edu.harvard.iq.dataverse;
+
+/**
+ *
+ * @author skraffmiller
+ */
+
+public class DatasetKeyword  {
+
+    private int displayOrder;
+    public int getDisplayOrder() {
+        return this.displayOrder;
+    }
+    public void setDisplayOrder(int displayOrder) {
+        this.displayOrder = displayOrder;
+    }
+
+    private DatasetField value;
+    public DatasetField getValue() {
+        return this.value;
+    }
+    public void setValue(DatasetField value) {
+        this.value = value;
+    }
+    
+    private DatasetVersion datasetVersion;
+    public DatasetVersion getDatasetVersion() {
+        return datasetVersion;
+    }
+    public void setDatasetVersion(DatasetVersion metadata) {
+        this.datasetVersion = metadata;
+    }
+    /*
+    @Version
+    private Long version;
+    public Long getVersion() {
+        return this.version;
+    }
+    public void setVersion(Long version) {
+        this.version = version;
+    }  */  
+
+    private DatasetField vocab;
+    public DatasetField getVocab() {
+        return this.vocab;
+    }
+    public void setVocab(DatasetField vocab) {
+        this.vocab = vocab;
+    }
+
+    private DatasetField vocabURI;
+    public DatasetField getVocabURI() {
+        return this.vocabURI;
+    }
+    public void setVocabURI(DatasetField vocabURI) {
+        this.vocabURI = vocabURI;
+    }
+
+
+     public boolean isEmpty() {
+        /*return ((value==null || value.getValue().trim().equals(""))
+            && (vocab==null || vocab.getValue().trim().equals(""))
+            && (vocabURI==null || vocabURI.getValue().trim().equals("")));*/
+         return false;
+    }
+     
+
+}