Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/fixings/FixOutlierFacet.java @ 8202:e4606eae8ea5
sed src/**/*.java 's/logger/log/g'
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 05 Sep 2014 12:58:17 +0200 |
parents | af13ceeba52a |
children | a3f318347707 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8201:4b8c5a08de04 | 8202:e4606eae8ea5 |
---|---|
25 */ | 25 */ |
26 public class FixOutlierFacet | 26 public class FixOutlierFacet |
27 extends FixingsFacet | 27 extends FixingsFacet |
28 implements FacetTypes { | 28 implements FacetTypes { |
29 | 29 |
30 /** House logger. */ | 30 /** House log. */ |
31 private static Logger logger = Logger.getLogger(FixOutlierFacet.class); | 31 private static Logger log = Logger.getLogger(FixOutlierFacet.class); |
32 | 32 |
33 /** Trivial Constructor. */ | 33 /** Trivial Constructor. */ |
34 public FixOutlierFacet() { | 34 public FixOutlierFacet() { |
35 } | 35 } |
36 | 36 |
56 * | 56 * |
57 * @return an array of QW objects or null. | 57 * @return an array of QW objects or null. |
58 */ | 58 */ |
59 @Override | 59 @Override |
60 public Object getData(Artifact artifact, CallContext context) { | 60 public Object getData(Artifact artifact, CallContext context) { |
61 logger.debug("FixOutlierFacet.getData"); | 61 log.debug("FixOutlierFacet.getData"); |
62 | 62 |
63 if (artifact instanceof D4EArtifact) { | 63 if (artifact instanceof D4EArtifact) { |
64 D4EArtifact flys = (D4EArtifact)artifact; | 64 D4EArtifact flys = (D4EArtifact)artifact; |
65 | 65 |
66 CalculationResult res = | 66 CalculationResult res = |
76 | 76 |
77 QWI [] qws = null; | 77 QWI [] qws = null; |
78 if (qwsEntry != null) { | 78 if (qwsEntry != null) { |
79 qws = qwsEntry.getValue(); | 79 qws = qwsEntry.getValue(); |
80 | 80 |
81 if (logger.isDebugEnabled()) { | 81 if (log.isDebugEnabled()) { |
82 logger.debug("Found " + (qws != null ? qws.length : 0) | 82 log.debug("Found " + (qws != null ? qws.length : 0) |
83 + " KMIndex.Entry for km " + currentKm); | 83 + " KMIndex.Entry for km " + currentKm); |
84 } | 84 } |
85 } | 85 } |
86 else { | 86 else { |
87 logger.debug("Found no KMIndex.Entry for km " + currentKm); | 87 log.debug("Found no KMIndex.Entry for km " + currentKm); |
88 } | 88 } |
89 | 89 |
90 return qws; | 90 return qws; |
91 } | 91 } |
92 | 92 |
93 logger.warn("Not an instance of D4EArtifact."); | 93 log.warn("Not an instance of D4EArtifact."); |
94 return null; | 94 return null; |
95 } | 95 } |
96 | 96 |
97 | 97 |
98 /** | 98 /** |