Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeDischargeCurveFacet.java @ 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 | 21f4e4b79121 |
children | 9745f37c0d52 |
comparison
equal
deleted
inserted
replaced
4582:6bfed02f025f | 4583:5d19a291bd9f |
---|---|
33 super(0, name, description); | 33 super(0, name, description); |
34 } | 34 } |
35 | 35 |
36 @Override | 36 @Override |
37 public Object getData(Artifact art, CallContext context) { | 37 public Object getData(Artifact art, CallContext context) { |
38 return getWQKms(art, context); | |
39 } | |
38 | 40 |
41 protected WQKms getWQKms(Artifact art, CallContext context) { | |
39 if (!(art instanceof FLYSArtifact)) { | 42 if (!(art instanceof FLYSArtifact)) { |
40 log.warn("Invalid artifact type"); | 43 log.warn("Invalid artifact type"); |
41 return null; | 44 return null; |
42 } | 45 } |
43 | 46 |