Mercurial > dive4elements > river
changeset 688:dc3613c4daf6 facets-slt
Moved Waterlevel state into the correct package.
flys-artifacts/branches/facets-slt@2128 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 16 Jun 2011 08:25:06 +0000 |
parents | 06689035024c |
children | f8ac04b2dbd0 |
files | flys-artifacts/src/main/java/de/intevation/flys/artifacts/WaterlevelState.java flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WaterlevelState.java |
diffstat | 2 files changed, 51 insertions(+), 51 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WaterlevelState.java Thu Jun 16 07:50:56 2011 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,51 +0,0 @@ -package de.intevation.flys.artifacts.states; - -import java.util.List; - -import org.apache.log4j.Logger; - -import org.w3c.dom.Element; - -import de.intevation.artifacts.Artifact; -import de.intevation.artifacts.CallContext; - -import de.intevation.artifacts.common.utils.XMLUtils; - -import de.intevation.artifactdatabase.state.Facet; - -import de.intevation.flys.artifacts.FLYSArtifact; -import de.intevation.flys.artifacts.WINFOArtifact; -import de.intevation.flys.artifacts.model.ComputeCallback; - - -public class WaterlevelState extends DefaultState { - - /** The logger that is used in this state.*/ - private static Logger logger = Logger.getLogger(WaterlevelState.class); - - - protected Element[] createItems( - XMLUtils.ElementCreator cr, - Artifact artifact, - String name, - CallContext context) - { - logger.debug("WaterlevelState.createItems"); - return null; - } - - - @Override - public ComputeCallback createComputeCallback( - String hash, FLYSArtifact flys) - { - final WINFOArtifact winfo = (WINFOArtifact) flys; - - return new ComputeCallback() { - public Object compute(List<Facet> facets) { - return winfo.getWaterlevelData(); - } - }; - } -} -// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WaterlevelState.java Thu Jun 16 08:25:06 2011 +0000 @@ -0,0 +1,51 @@ +package de.intevation.flys.artifacts.states; + +import java.util.List; + +import org.apache.log4j.Logger; + +import org.w3c.dom.Element; + +import de.intevation.artifacts.Artifact; +import de.intevation.artifacts.CallContext; + +import de.intevation.artifacts.common.utils.XMLUtils; + +import de.intevation.artifactdatabase.state.Facet; + +import de.intevation.flys.artifacts.FLYSArtifact; +import de.intevation.flys.artifacts.WINFOArtifact; +import de.intevation.flys.artifacts.model.ComputeCallback; + + +public class WaterlevelState extends DefaultState { + + /** The logger that is used in this state.*/ + private static Logger logger = Logger.getLogger(WaterlevelState.class); + + + protected Element[] createItems( + XMLUtils.ElementCreator cr, + Artifact artifact, + String name, + CallContext context) + { + logger.debug("WaterlevelState.createItems"); + return null; + } + + + @Override + public ComputeCallback createComputeCallback( + String hash, FLYSArtifact flys) + { + final WINFOArtifact winfo = (WINFOArtifact) flys; + + return new ComputeCallback() { + public Object compute(List<Facet> facets) { + return winfo.getWaterlevelData(); + } + }; + } +} +// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :