changeset 4583:5d19a291bd9f

Refactor getting the WQKms into it's own method
author Björn Ricks <bjoern.ricks@intevation.de>
date Tue, 27 Nov 2012 17:38:23 +0100
parents 6bfed02f025f
children 9745f37c0d52
files flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeDischargeCurveFacet.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeDischargeCurveFacet.java	Tue Nov 27 17:47:33 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeDischargeCurveFacet.java	Tue Nov 27 17:38:23 2012 +0100
@@ -35,7 +35,10 @@
 
     @Override
     public Object getData(Artifact art, CallContext context) {
+        return getWQKms(art, context);
+    }
 
+    protected WQKms getWQKms(Artifact art, CallContext context) {
         if (!(art instanceof FLYSArtifact)) {
             log.warn("Invalid artifact type");
             return null;

http://dive4elements.wald.intevation.org