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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Wed Jan 19 12:04:24 GMT 2011


Author: whalley
Date: Wed Jan 19 12:04:24 2011
New Revision: 1430

Log:
adding ValueLength for decimal display length

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	Wed Jan 19 12:02:53 2011	(r1429)
+++ trunk/hepdata-model/src/main/java/cedar/hepdata/model/Point.java	Wed Jan 19 12:04:24 2011	(r1430)
@@ -27,6 +27,10 @@
     @Column(name="Value", nullable=false)
     private Double _value;
 
+    /** The number of decimal places for display */
+    @Column(name="ValueLength", nullable=true)
+    private Integer _valuelength;
+
     /** Point errors. */
     @org.hibernate.annotations.CollectionOfElements
     @JoinTable(name="PointErrors", joinColumns=@JoinColumn(name="VALUE_ID"))
@@ -124,6 +128,16 @@
         return this;
     }
 
+    /** Get the point valuelength. */
+    public Integer getValueLength() {
+        return _valuelength;
+    }
+    /** Set the point valuelength. */
+    public Point setValueLength(Integer valuelength) {
+        _valuelength = valuelength;
+        return this;
+    }
+
 
     /** Get the relation type (equal, less than, greater than). */
     public Relation getRelation() {
@@ -250,8 +264,8 @@
     public SortedSet<Uncertainty> getAllErrors() {
         SortedSet<Uncertainty> allErrors = new TreeSet<Uncertainty>();
         allErrors.addAll(getErrors());
-        allErrors.addAll(getAxisErrors());
-        allErrors.addAll(getDatasetErrors());
+//        allErrors.addAll(getAxisErrors());
+//        allErrors.addAll(getDatasetErrors());
         return allErrors;
     }
 


More information about the HepData-svn mailing list