comparison artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/vegetationzones/VegetationZonesTableEditState.java @ 9069:1ffd38826175

access uinfo.vegetationzones+inundation_duration
author gernotbelger
date Tue, 15 May 2018 12:00:26 +0200
parents b5d7a9d79837
children 431f1c269be5
comparison
equal deleted inserted replaced
9068:a5cf8d7bff3c 9069:1ffd38826175
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the 7 * and comes with ABSOLUTELY NO WARRANTY! Check out the
8 * documentation coming with Dive4Elements River for details. 8 * documentation coming with Dive4Elements River for details.
9 */ 9 */
10 package org.dive4elements.river.artifacts.uinfo.vegetationzones; 10 package org.dive4elements.river.artifacts.uinfo.vegetationzones;
11 11
12 import org.dive4elements.artifacts.Artifact;
12 import org.dive4elements.river.artifacts.states.DefaultState; 13 import org.dive4elements.river.artifacts.states.DefaultState;
13 14
14 /** 15 /**
15 * @author Domenico Nardi Tironi 16 * @author Domenico Nardi Tironi
16 */ 17 */
20 21
21 @Override 22 @Override
22 protected String getUIProvider() { 23 protected String getUIProvider() {
23 return "uinfo.vegetationzones.table.edit"; 24 return "uinfo.vegetationzones.table.edit";
24 } 25 }
26
27 @Override
28 public boolean validate(final Artifact artifact) throws IllegalArgumentException {
29 // TODO: check verstehen
30
31 // final InundationDurationAccess access = new InundationDurationAccess((SINFOArtifact) artifact);
32
33 // Second year should be later than first.
34
35 // if (access.getYears() == null || access.getYears().length == 0)
36 return true;
37 // throw new IllegalArgumentException("error_years_wrong");
38
39 // return true;
40 }
25 } 41 }

http://dive4elements.wald.intevation.org