changeset 4332:0545002e112c

ExtremeAccess: Renamed log to logger, documentation.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 31 Oct 2012 13:44:36 +0100
parents cf419a37e836
children 2d3f8af87b7b
files flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/ExtremeAccess.java
diffstat 1 files changed, 17 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/ExtremeAccess.java	Wed Oct 31 11:46:15 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/ExtremeAccess.java	Wed Oct 31 13:44:36 2012 +0100
@@ -15,7 +15,8 @@
 public class ExtremeAccess
 extends      RiverAccess
 {
-    private static Logger log = Logger.getLogger(ExtremeAccess.class);
+    /** Our private logger. */
+    private static Logger logger = Logger.getLogger(ExtremeAccess.class);
 
     protected Double from;
     protected Double to;
@@ -34,6 +35,7 @@
     public ExtremeAccess() {
     }
 
+
     public ExtremeAccess(FLYSArtifact artifact) {
         super(artifact);
     }
@@ -46,8 +48,8 @@
             from = getDouble("ld_from");
         }
 
-        if (log.isDebugEnabled()) {
-            log.debug("from: '" + from + "'");
+        if (logger.isDebugEnabled()) {
+            logger.debug("from: '" + from + "'");
         }
 
         return from;
@@ -61,8 +63,8 @@
             to = getDouble("ld_to");
         }
 
-        if (log.isDebugEnabled()) {
-            log.debug("to: '" + to + "'");
+        if (logger.isDebugEnabled()) {
+            logger.debug("to: '" + to + "'");
         }
 
         return to;
@@ -76,21 +78,23 @@
             step = getDouble("ld_step");
         }
 
-        if (log.isDebugEnabled()) {
-            log.debug("step: '" + step + "'");
+        if (logger.isDebugEnabled()) {
+            logger.debug("step: '" + step + "'");
         }
 
         return step;
     }
 
+
+    /** Returns the percent given. */
     public Double getPercent() {
 
         if (percent == null) {
             percent = getDouble("percent");
         }
 
-        if (log.isDebugEnabled()) {
-            log.debug("percent: '" + percent + "'");
+        if (logger.isDebugEnabled()) {
+            logger.debug("percent: '" + percent + "'");
         }
 
         return percent;
@@ -101,8 +105,8 @@
             function = getString("function");
         }
 
-        if (log.isDebugEnabled()) {
-            log.debug("function: '" + function + "'");
+        if (logger.isDebugEnabled()) {
+            logger.debug("function: '" + function + "'");
         }
 
         return function;
@@ -124,8 +128,8 @@
             });
         }
 
-        if (log.isDebugEnabled()) {
-            log.debug("ranges: " + ranges);
+        if (logger.isDebugEnabled()) {
+            logger.debug("ranges: " + ranges);
         }
 
         return ranges;

http://dive4elements.wald.intevation.org