diff artifacts/src/main/java/org/dive4elements/river/artifacts/services/SedimentLoadInfoService.java @ 8024:963ede7b32bb

Renamed SedimentLoad to SedimentLoadLSData to make place for SedimentLoad in backend.
author Sascha L. Teichmann <teichmann@intevation.de>
date Wed, 09 Jul 2014 17:33:57 +0200
parents b68798973da2
children 2c21fd1ade39
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/services/SedimentLoadInfoService.java	Wed Jul 09 17:10:18 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/services/SedimentLoadInfoService.java	Wed Jul 09 17:33:57 2014 +0200
@@ -18,7 +18,7 @@
 import org.dive4elements.artifacts.CallMeta;
 import org.dive4elements.artifacts.GlobalContext;
 import org.dive4elements.artifacts.common.utils.XMLUtils;
-import org.dive4elements.river.artifacts.model.minfo.SedimentLoad;
+import org.dive4elements.river.artifacts.model.minfo.SedimentLoadLSData;
 import org.dive4elements.river.artifacts.model.minfo.SedimentLoadFactory;
 
 
@@ -69,15 +69,15 @@
             return XMLUtils.newDocument();
         }
 
-        SedimentLoad[] loads =
+        SedimentLoadLSData[] loads =
             SedimentLoadFactory.getLoads(river, type, fromD, toD);
         return buildDocument(loads);
     }
 
-    protected Document buildDocument(SedimentLoad[] loads) {
+    protected Document buildDocument(SedimentLoadLSData[] loads) {
         Document result = XMLUtils.newDocument();
         Element all = result.createElement("sedimentloads");
-        for (SedimentLoad sl : loads) {
+        for (SedimentLoadLSData sl : loads) {
             Element load = result.createElement("sedimentload");
             load.setAttribute("description", sl.getDescription());
             if (sl.isEpoch()) {

http://dive4elements.wald.intevation.org