Mercurial > dive4elements > river
view flys-artifacts/src/main/java/de/intevation/flys/artifacts/transitions/DefaultTransition.java @ 120:5243ac559e16
Added a TODO file.
flys-artifacts/trunk@1440 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 09 Mar 2011 14:07:03 +0000 |
parents | a228b39494a9 |
children | 542f280d72c3 |
line wrap: on
line source
package de.intevation.flys.artifacts.transitions; import de.intevation.artifactdatabase.state.State; import de.intevation.artifactdatabase.transition.Transition; /** * The default implementation of a <code>Transition</code>. * * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> */ public class DefaultTransition implements Transition { /** The ID of the current state */ protected String from; /** The ID of the target state */ protected String to; /** * The default constructor. */ public DefaultTransition() { } /** * The default constructor. * * @param from The current state. * @param to The target state. */ public DefaultTransition(String from, String to) { this.from = from; this.to = to; } /** * Returns the current state ID. * * @return the current state ID. */ public String getFrom() { return from; } /** * Returns the target state ID. * * @return the target state ID. */ public String getTo() { return to; } /** * Set the current state ID. * * @param to the current state ID. */ public void setFrom(String from) { this.from = from; } /** * Set the target state ID. * * @param to the target state ID. */ public void setTo(String to) { this.to = to; } /** * This method always returns <i>true</i>. * * @param state The target state. * * @return true. */ public boolean isValid(State state) { return true; } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :