[HepData-svn] r1741 - trunk/hepdata-model/src/main/java/cedar/hepdata/model

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Mon Feb 17 11:06:20 GMT 2014


Author: whalley
Date: Mon Feb 17 11:06:19 2014
New Revision: 1741

Log:
adding Description field to Points

Modified:
   trunk/hepdata-model/src/main/java/cedar/hepdata/model/Point.java

Modified: trunk/hepdata-model/src/main/java/cedar/hepdata/model/Point.java
==============================================================================
--- trunk/hepdata-model/src/main/java/cedar/hepdata/model/Point.java	Tue Feb 11 11:45:49 2014	(r1740)
+++ trunk/hepdata-model/src/main/java/cedar/hepdata/model/Point.java	Mon Feb 17 11:06:19 2014	(r1741)
@@ -31,6 +31,10 @@
     @Column(name="ValueLength", nullable=true)
     private Integer _valuelength;
 
+     /**String Description - only used if none numerical value */
+    @Column(name="Description", nullable=true)
+    private String _description = null;
+
     /** Point errors. */
     @org.hibernate.annotations.CollectionOfElements
     @JoinTable(name="PointErrors", joinColumns=@JoinColumn(name="VALUE_ID"))
@@ -64,6 +68,10 @@
     /** No-arg constructor for Hibernate **/
     public Point() {}
 
+    public Point(String description) {
+        setDescription(description);
+    }
+
     /** Constructor for a value */
     public Point(Double value) {
         setValue(value);
@@ -151,6 +159,16 @@
     }
 
 
+    /** Get description */
+    public String getDescription() {
+        return _description;
+    }
+    /** Set description */
+    public Point setDescription(String description) {
+        _description = description;
+        return this;
+    }
+
     /** Get the confidence level. */
     public Double getConfidenceLevel() {
         return _confidenceLevel;


More information about the HepData-svn mailing list