comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/LocationSelect.java @ 5867:59ff03ff48f1

River artifacts: Renamed FLYSArtifact(Collection) to D4EArtifact(Collection).
author Sascha L. Teichmann <teichmann@intevation.de>
date Sun, 28 Apr 2013 15:23:01 +0200
parents 4897a58c8746
children af13ceeba52a
comparison
equal deleted inserted replaced
5866:9a6741ccf6d4 5867:59ff03ff48f1
19 19
20 import org.dive4elements.artifacts.common.utils.XMLUtils; 20 import org.dive4elements.artifacts.common.utils.XMLUtils;
21 21
22 import org.dive4elements.artifactdatabase.data.StateData; 22 import org.dive4elements.artifactdatabase.data.StateData;
23 23
24 import org.dive4elements.river.artifacts.FLYSArtifact; 24 import org.dive4elements.river.artifacts.D4EArtifact;
25 25
26 26
27 /** 27 /**
28 * This state is used to realize the input of multiple locations as string. 28 * This state is used to realize the input of multiple locations as string.
29 * 29 *
90 public boolean validate(Artifact artifact) 90 public boolean validate(Artifact artifact)
91 throws IllegalArgumentException 91 throws IllegalArgumentException
92 { 92 {
93 logger.debug("LocationSelect.validate"); 93 logger.debug("LocationSelect.validate");
94 94
95 FLYSArtifact flys = (FLYSArtifact) artifact; 95 D4EArtifact flys = (D4EArtifact) artifact;
96 StateData data = getData(flys, LOCATIONS); 96 StateData data = getData(flys, LOCATIONS);
97 97
98 String locationStr = data != null 98 String locationStr = data != null
99 ? (String) data.getValue() 99 ? (String) data.getValue()
100 : null; 100 : null;

http://dive4elements.wald.intevation.org