Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/transition/TransitionBase.java @ 875:5e9efdda6894
merged gnv-artifacts/1.0
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:13:56 +0200 |
parents | 05bf8534a35a |
children | f953c9a559d8 |
comparison
equal
deleted
inserted
replaced
722:bb3ffe7d719e | 875:5e9efdda6894 |
---|---|
1 package de.intevation.gnv.transition; | |
2 | |
3 import de.intevation.artifactdatabase.Config; | |
4 | |
5 import org.w3c.dom.Node; | |
6 | |
7 /** | |
8 * An abstract implementation of <code>Transition</code>. | |
9 * | |
10 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> | |
11 * | |
12 */ | |
13 public abstract class TransitionBase implements Transition { | |
14 | |
15 /** | |
16 * The UID of this Class. | |
17 */ | |
18 private static final long serialVersionUID = -8542097519466477977L; | |
19 | |
20 private String from = null; | |
21 | |
22 private String to = null; | |
23 /** | |
24 * Constructor | |
25 */ | |
26 public TransitionBase() { | |
27 } | |
28 | |
29 | |
30 public String getFrom() { | |
31 return this.from; | |
32 } | |
33 | |
34 | |
35 public String getTo() { | |
36 return this.to; | |
37 } | |
38 | |
39 | |
40 public void setup(Node configuration) { | |
41 this.from = Config.getStringXPath(configuration,"from/@state"); | |
42 this.to = Config.getStringXPath(configuration,"to/@state"); | |
43 } | |
44 } | |
45 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |