comparison artifact-database/src/main/java/de/intevation/artifactdatabase/transition/Transition.java @ 104:26bfff409dd3

Added interfaces and engines used in concrete artifact packages. artifacts/trunk@1289 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 03 Feb 2011 18:00:41 +0000
parents
children 8c2b6cdf22ad
comparison
equal deleted inserted replaced
103:1282cf96d3eb 104:26bfff409dd3
1 package de.intevation.artifactdatabase.transition;
2
3 import de.intevation.artifactdatabase.state.State;
4
5
6 /**
7 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
8 */
9 public interface Transition {
10
11 /**
12 * Return the ID of the start State.
13 */
14 public String getFrom();
15
16 /**
17 * Return the ID of the target State.
18 */
19 public String getTo();
20
21 /**
22 * Set the ID of the current State.
23 *
24 * @param from The ID of the current state.
25 */
26 public void setFrom(String from);
27
28 /**
29 * Set the ID of the target State.
30 *
31 * @param to The ID of the target state.
32 */
33 public void setTo(String to);
34
35 /**
36 * Determines if the transition from <code>state</code> is valid.
37 */
38 public boolean isValid(State state);
39 }
40 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org