Mercurial > dive4elements > river
changeset 4157:44d27b8bb0bc
Store a StaticState class in staticstate member variable
To be able to access StaticState methods we need a StaticState calls instead of
a State here.
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Tue, 16 Oct 2012 15:47:36 +0200 |
parents | 529d0e61e70d |
children | a699d6c42a8b |
files | flys-artifacts/src/main/java/de/intevation/flys/artifacts/AbstractStaticStateArtifact.java |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/AbstractStaticStateArtifact.java Tue Oct 16 15:42:10 2012 +0200 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/AbstractStaticStateArtifact.java Tue Oct 16 15:47:36 2012 +0200 @@ -5,6 +5,8 @@ import de.intevation.artifactdatabase.state.State; +import de.intevation.flys.artifacts.states.StaticState; + /** * A abstract baseclass for Artifacts which are using only one static state. * @@ -15,7 +17,7 @@ */ public abstract class AbstractStaticStateArtifact extends StaticFLYSArtifact { - private transient State staticstate; + private transient StaticState staticstate; /** * Get a list containing the one and only State. @@ -45,11 +47,11 @@ */ protected abstract void initStaticState(); - protected void setStaticState(State state) { + protected void setStaticState(StaticState state) { this.staticstate = state; } - protected State getStaticState() { + protected StaticState getStaticState() { if (staticstate == null) { initStaticState(); }