changeset 5048:1c34acb084ee

Import*: Add getters to ImportWaterlevel*- classes needed to convert to Wst.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 20 Feb 2013 11:52:52 +0100
parents 52c3a9d14441
children b5e3df1feeb4
files flys-backend/src/main/java/de/intevation/flys/importer/ImportWaterlevel.java flys-backend/src/main/java/de/intevation/flys/importer/ImportWaterlevelQRange.java flys-backend/src/main/java/de/intevation/flys/importer/ImportWaterlevelValue.java
diffstat 3 files changed, 28 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/importer/ImportWaterlevel.java	Wed Feb 20 11:51:19 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/ImportWaterlevel.java	Wed Feb 20 11:52:52 2013 +0100
@@ -31,14 +31,26 @@
         this.description = description;
     }
 
+    public String getDescription() {
+        return this.description;
+    }
+
     public void setUnit(ImportUnit unit) {
         this.unit = unit;
     }
 
+    public ImportUnit getUnit() {
+        return this.unit;
+    }
+
     public void addValue(ImportWaterlevelQRange qRange) {
         this.qRanges.add(qRange);
     }
 
+    public List<ImportWaterlevelQRange> getQRanges() {
+        return this.qRanges;
+    }
+
     public void storeDependencies(River river) {
         log.info("store dependencies");
 
--- a/flys-backend/src/main/java/de/intevation/flys/importer/ImportWaterlevelQRange.java	Wed Feb 20 11:51:19 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/ImportWaterlevelQRange.java	Wed Feb 20 11:52:52 2013 +0100
@@ -34,6 +34,13 @@
         this.values.add(value);
     }
 
+    public Double getQ() {
+        return this.q;
+    }
+
+    public List<ImportWaterlevelValue> getValues() {
+        return values;
+    }
 
     public void storeDependencies(Waterlevel waterlevel) {
         log.info("store dependencies");
--- a/flys-backend/src/main/java/de/intevation/flys/importer/ImportWaterlevelValue.java	Wed Feb 20 11:51:19 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/ImportWaterlevelValue.java	Wed Feb 20 11:52:52 2013 +0100
@@ -29,6 +29,15 @@
     }
 
 
+    public Double getStation() {
+        return this.station;
+    }
+
+
+    public Double getW() {
+        return this.w;
+    }
+
     public WaterlevelValue getPeer(WaterlevelQRange qRange) {
         if (peer == null) {
             Session session = ImporterSession.getInstance().getDatabaseSession();

http://dive4elements.wald.intevation.org