diff artifacts/src/main/java/org/dive4elements/river/artifacts/services/MainValuesService.java @ 8856:5e38e2924c07 3.2.x

Fix code style.
author Tom Gottfried <tom@intevation.de>
date Thu, 18 Jan 2018 20:12:01 +0100
parents 30b1ddadf275
children 82c67b859aa7 0a5239a1e46e
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/services/MainValuesService.java	Thu Jan 18 20:10:59 2018 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/services/MainValuesService.java	Thu Jan 18 20:12:01 2018 +0100
@@ -46,11 +46,13 @@
     /** The log that is used by this service.*/
     private static Logger log = Logger.getLogger(MainValuesService.class);
 
-    /** The XPath that points to the river definition of the incoming request.*/
-    public static final String XPATH_RIVER = "/art:mainvalues/art:river/text()";
+    /** XPath that points to the river definition of the incoming request.*/
+    public static final String XPATH_RIVER =
+        "/art:mainvalues/art:river/text()";
 
-    /** The XPath that points to the start definition of the incoming request.*/
-    public static final String XPATH_START = "/art:mainvalues/art:start/text()";
+    /** XPath that points to the start definition of the incoming request.*/
+    public static final String XPATH_START =
+        "/art:mainvalues/art:start/text()";
 
     /** The XPath that points to the end definition of the incoming request.*/
     public static final String XPATH_END = "/art:mainvalues/art:end/text()";
@@ -124,7 +126,8 @@
 
     /**
      * This method extracts the start and end point from incoming request
-     * document and returns both values in an array. If no start and end strings
+     * document and returns both values in an array.
+     * If no start and end strings
      * are found in the document, the min/max values of the <i>river</i> are
      * returned.
      *
@@ -259,9 +262,14 @@
 
 
     /** Checks i a main value has an official associated, */
-    protected static boolean hasOfficialLine(NamedMainValue nmv, Integer riverId) {
+    protected static boolean hasOfficialLine(
+        NamedMainValue nmv,
+        Integer riverId
+    ) {
         for (OfficialLine ol: nmv.getOfficialLines()) {
-            if (ol.getWstColumn().getWst().getRiver().getId().equals(riverId)) {
+            if (
+                ol.getWstColumn().getWst().getRiver().getId().equals(riverId)
+            ) {
                 return true;
             }
         }
@@ -287,7 +295,8 @@
         Element list = cr.create("mainvalues");
 
         for (MainValue mainValue: mainValues) {
-            Element newEl = buildMainValueElement(doc, mainValue, riverId, context);
+            Element newEl = buildMainValueElement(
+                doc, mainValue, riverId, context);
 
             if (newEl != null) {
                 list.appendChild(newEl);
@@ -330,11 +339,13 @@
         if (mainValue.getTimeInterval() != null) {
             if (mainValue.getTimeInterval().getStartTime() != null) {
                 cr.addAttr(el, "starttime",
-                    Long.toString(mainValue.getTimeInterval().getStartTime().getTime()));
+                    Long.toString(
+                        mainValue.getTimeInterval().getStartTime().getTime()));
             }
             if (mainValue.getTimeInterval().getStopTime() != null) {
                 cr.addAttr(el, "stoptime",
-                    Long.toString(mainValue.getTimeInterval().getStopTime().getTime()));
+                    Long.toString(
+                        mainValue.getTimeInterval().getStopTime().getTime()));
             }
         }
 

http://dive4elements.wald.intevation.org