comparison gnv-artifacts/src/main/java/de/intevation/gnv/transition/TransitionBase.java @ 337:a887074460b6

Last Step of the Refactoring Work on the Transition Model. Splitted Businesslogic between States and Transitions. Splitted the ConfigurationElements of State and Transition in several XML-Fragments. gnv-artifacts/trunk@403 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 08 Dec 2009 13:38:21 +0000
parents
children 9a828e5a2390
comparison
equal deleted inserted replaced
336:1b9ca0f2d498 337:a887074460b6
1 /**
2 *
3 */
4 package de.intevation.gnv.transition;
5
6 import org.w3c.dom.Node;
7
8 import de.intevation.artifactdatabase.Config;
9
10 /**
11 * @author Tim Englich <tim.englich@intevation.de>
12 *
13 */
14 public abstract class TransitionBase implements Transition {
15
16 /**
17 * The UID of this Class.
18 */
19 private static final long serialVersionUID = -8542097519466477977L;
20
21 private String from = null;
22
23 private String to = null;
24 /**
25 * Constructor
26 */
27 public TransitionBase() {
28 }
29
30 /**
31 * @see de.intevation.gnv.transition.Transition#getFrom()
32 */
33 public String getFrom() {
34 return this.from;
35 }
36
37 /**
38 * @see de.intevation.gnv.transition.Transition#getTo()
39 */
40 public String getTo() {
41 return this.to;
42 }
43
44 /**
45 * @see de.intevation.gnv.transition.Transition#setup(org.w3c.dom.Node)
46 */
47 public void setup(Node configuration) {
48 this.from = Config.getStringXPath(configuration,"from/@state");
49 this.to = Config.getStringXPath(configuration,"to/@state");
50 }
51
52 }

http://dive4elements.wald.intevation.org