annotate flys-artifacts/src/main/java/de/intevation/flys/artifacts/WaterlevelState.java @ 450:c8bb38115290

Enabled the discharge longitudinal section to be exported as WST. flys-artifacts/trunk@1944 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 18 May 2011 10:59:38 +0000
parents 37b320bb292b
children 06689035024c
rev   line source
357
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
1 package de.intevation.flys.artifacts.states;
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
2
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
3 import org.apache.log4j.Logger;
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
4
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
5 import org.w3c.dom.Element;
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
6
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
7 import de.intevation.artifacts.Artifact;
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
8 import de.intevation.artifacts.CallContext;
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
9
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
10 import de.intevation.artifacts.common.utils.XMLUtils;
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
11
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
12
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
13 public class WaterlevelState extends DefaultState {
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
14
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
15 /** The logger that is used in this state.*/
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
16 private static Logger logger = Logger.getLogger(WaterlevelState.class);
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
17
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
18
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
19 protected Element[] createItems(
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
20 XMLUtils.ElementCreator cr,
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
21 Artifact artifact,
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
22 String name,
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
23 CallContext context)
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
24 {
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
25 logger.debug("WaterlevelState.createItems");
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
26 return null;
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
27 }
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
28 }
37b320bb292b Added a further state that is reached if the waterlevel calculation mode has been chosen.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
29 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org