[Dive4elements-commits] [PATCH 3 of 3] Import*: Add getters to ImportWaterlevel*- classes needed to convert to Wst

Wald Commits scm-commit at wald.intevation.org
Wed Feb 20 11:45:58 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1361357572 -3600
# Node ID 1c34acb084ee37faf76fb0d7063975ab9dec32cd
# Parent  52c3a9d144415498ee2d88246de3f5770b6c8639
Import*: Add getters to ImportWaterlevel*- classes needed to convert to Wst.

diff -r 52c3a9d14441 -r 1c34acb084ee flys-backend/src/main/java/de/intevation/flys/importer/ImportWaterlevel.java
--- 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");
 
diff -r 52c3a9d14441 -r 1c34acb084ee flys-backend/src/main/java/de/intevation/flys/importer/ImportWaterlevelQRange.java
--- 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");
diff -r 52c3a9d14441 -r 1c34acb084ee flys-backend/src/main/java/de/intevation/flys/importer/ImportWaterlevelValue.java
--- 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();


More information about the Dive4elements-commits mailing list