Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/inundationduration/LoadScenarioSelect.java @ 9481:787fc085459b
TSV introduced; uinfo.inundationWMS-Config
author | gernotbelger |
---|---|
date | Wed, 12 Sep 2018 10:55:09 +0200 |
parents | 1b2623dff742 |
children | 73819a194bfd |
comparison
equal
deleted
inserted
replaced
9480:7228bd10a8cc | 9481:787fc085459b |
---|---|
10 | 10 |
11 import java.util.HashMap; | 11 import java.util.HashMap; |
12 import java.util.Map; | 12 import java.util.Map; |
13 | 13 |
14 import org.apache.log4j.Logger; | 14 import org.apache.log4j.Logger; |
15 import org.dive4elements.artifactdatabase.data.StateData; | |
15 import org.dive4elements.artifacts.Artifact; | 16 import org.dive4elements.artifacts.Artifact; |
16 import org.dive4elements.artifacts.CallContext; | 17 import org.dive4elements.artifacts.CallContext; |
18 import org.dive4elements.artifacts.common.utils.XMLUtils; | |
17 import org.dive4elements.artifacts.common.utils.XMLUtils.ElementCreator; | 19 import org.dive4elements.artifacts.common.utils.XMLUtils.ElementCreator; |
18 import org.dive4elements.river.artifacts.states.AddTableDataHelper; | 20 import org.dive4elements.river.artifacts.states.AddTableDataHelper; |
19 import org.dive4elements.river.artifacts.states.DefaultState; | 21 import org.dive4elements.river.artifacts.states.DefaultState; |
22 import org.dive4elements.river.artifacts.uinfo.salix.ScenarioTypeState; | |
20 import org.w3c.dom.Element; | 23 import org.w3c.dom.Element; |
21 | 24 |
22 /** State in which to fetch years for sedminent load calculation. */ | 25 /** State in which to fetch years for sedminent load calculation. */ |
23 public class LoadScenarioSelect extends DefaultState { | 26 public class LoadScenarioSelect extends DefaultState { |
24 private static final long serialVersionUID = 1L; | 27 private static final long serialVersionUID = 1L; |
63 } | 66 } |
64 | 67 |
65 @Override | 68 @Override |
66 public boolean validate(final Artifact artifact) throws IllegalArgumentException { | 69 public boolean validate(final Artifact artifact) throws IllegalArgumentException { |
67 return true; | 70 return true; |
71 } | |
68 | 72 |
73 @Override | |
74 protected Element createData(final XMLUtils.ElementCreator cr, final Artifact artifact, final StateData data, final CallContext context) { | |
75 return ScenarioTypeState.changeHeaderForCurrentState("state.uinfo.inundation.scenario", data.getName(), cr, context); | |
69 } | 76 } |
70 } | 77 } |
71 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : | 78 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : |