# HG changeset patch # User Björn Ricks # Date 1350395256 -7200 # Node ID 44d27b8bb0bc0864bc039032528944f74e08403d # Parent 529d0e61e70d86ed2e7ffcb2291251526d9bfea5 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. diff -r 529d0e61e70d -r 44d27b8bb0bc flys-artifacts/src/main/java/de/intevation/flys/artifacts/AbstractStaticStateArtifact.java --- 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(); }