Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/WDifferencesState.java @ 5865:73da40528cf2
River artifacts: Renamed FLYSUtils to RiverUtils.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sun, 28 Apr 2013 15:09:31 +0200 |
parents | 4897a58c8746 |
children | 59ff03ff48f1 |
comparison
equal
deleted
inserted
replaced
5864:f2e46a668fe6 | 5865:73da40528cf2 |
---|---|
32 | 32 |
33 import org.dive4elements.river.artifacts.model.FacetTypes; | 33 import org.dive4elements.river.artifacts.model.FacetTypes; |
34 import org.dive4elements.river.artifacts.model.WKms; | 34 import org.dive4elements.river.artifacts.model.WKms; |
35 import org.dive4elements.river.artifacts.model.WQKms; | 35 import org.dive4elements.river.artifacts.model.WQKms; |
36 | 36 |
37 import org.dive4elements.river.utils.FLYSUtils; | 37 import org.dive4elements.river.utils.RiverUtils; |
38 import org.dive4elements.river.utils.StringUtil; | 38 import org.dive4elements.river.utils.StringUtil; |
39 | 39 |
40 | 40 |
41 public class WDifferencesState | 41 public class WDifferencesState |
42 extends DefaultState | 42 extends DefaultState |
84 String name = def[1]; | 84 String name = def[1]; |
85 int idx = Integer.parseInt(def[2]); | 85 int idx = Integer.parseInt(def[2]); |
86 | 86 |
87 if (name.startsWith("staticwkms")) { | 87 if (name.startsWith("staticwkms")) { |
88 StaticWKmsArtifact staticWKms = | 88 StaticWKmsArtifact staticWKms = |
89 (StaticWKmsArtifact) FLYSUtils.getArtifact( | 89 (StaticWKmsArtifact) RiverUtils.getArtifact( |
90 uuid, | 90 uuid, |
91 context); | 91 context); |
92 logger.debug("WDifferencesState obtain data from StaticWKms"); | 92 logger.debug("WDifferencesState obtain data from StaticWKms"); |
93 WKms wkms = staticWKms.getWKms(idx); | 93 WKms wkms = staticWKms.getWKms(idx); |
94 if (wkms == null) | 94 if (wkms == null) |
95 logger.error("No WKms from artifact."); | 95 logger.error("No WKms from artifact."); |
96 return wkms; | 96 return wkms; |
97 } | 97 } |
98 | 98 |
99 WINFOArtifact flys = (WINFOArtifact) FLYSUtils.getArtifact( | 99 WINFOArtifact flys = (WINFOArtifact) RiverUtils.getArtifact( |
100 uuid, | 100 uuid, |
101 context); | 101 context); |
102 | 102 |
103 if (flys == null) { | 103 if (flys == null) { |
104 logger.warn("One of the artifacts (1) for diff calculation could not be loaded"); | 104 logger.warn("One of the artifacts (1) for diff calculation could not be loaded"); |