comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/HWSBarriersState.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
49 import org.dive4elements.river.artifacts.model.map.HWS; 49 import org.dive4elements.river.artifacts.model.map.HWS;
50 import org.dive4elements.river.artifacts.model.map.HWSContainer; 50 import org.dive4elements.river.artifacts.model.map.HWSContainer;
51 import org.dive4elements.river.artifacts.model.map.HWSFactory; 51 import org.dive4elements.river.artifacts.model.map.HWSFactory;
52 52
53 import org.dive4elements.river.utils.ArtifactMapfileGenerator; 53 import org.dive4elements.river.utils.ArtifactMapfileGenerator;
54 import org.dive4elements.river.utils.FLYSUtils; 54 import org.dive4elements.river.utils.RiverUtils;
55 import org.dive4elements.river.utils.GeometryUtils; 55 import org.dive4elements.river.utils.GeometryUtils;
56 import org.dive4elements.river.utils.MapfileGenerator; 56 import org.dive4elements.river.utils.MapfileGenerator;
57 57
58 public class HWSBarriersState 58 public class HWSBarriersState
59 extends DefaultState 59 extends DefaultState
326 * Removes the directory and all its content where the required data and the 326 * Removes the directory and all its content where the required data and the
327 * results of WSPLGEN are stored. Should be called in endOfLife(). 327 * results of WSPLGEN are stored. Should be called in endOfLife().
328 */ 328 */
329 // FIXME: I've seen this code somewhere else... 329 // FIXME: I've seen this code somewhere else...
330 protected void removeDirectory(FLYSArtifact artifact) { 330 protected void removeDirectory(FLYSArtifact artifact) {
331 String shapePath = FLYSUtils.getXPathString( 331 String shapePath = RiverUtils.getXPathString(
332 FLYSUtils.XPATH_FLOODMAP_SHAPEFILE_DIR); 332 RiverUtils.XPATH_FLOODMAP_SHAPEFILE_DIR);
333 333
334 File artifactDir = new File(shapePath, artifact.identifier()); 334 File artifactDir = new File(shapePath, artifact.identifier());
335 335
336 if (artifactDir.exists()) { 336 if (artifactDir.exists()) {
337 logger.debug("Delete directory: " + artifactDir.getAbsolutePath()); 337 logger.debug("Delete directory: " + artifactDir.getAbsolutePath());
352 * @param artifact The owner Artifact. 352 * @param artifact The owner Artifact.
353 * 353 *
354 * @return the directory for WSPLEN data. 354 * @return the directory for WSPLEN data.
355 */ 355 */
356 protected File getDirectory(FLYSArtifact artifact) { 356 protected File getDirectory(FLYSArtifact artifact) {
357 String shapePath = FLYSUtils.getXPathString( 357 String shapePath = RiverUtils.getXPathString(
358 FLYSUtils.XPATH_FLOODMAP_SHAPEFILE_DIR); 358 RiverUtils.XPATH_FLOODMAP_SHAPEFILE_DIR);
359 359
360 File artifactDir = FileTools.getDirectory( 360 File artifactDir = FileTools.getDirectory(
361 shapePath, artifact.identifier()); 361 shapePath, artifact.identifier());
362 362
363 return artifactDir; 363 return artifactDir;

http://dive4elements.wald.intevation.org