Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/transition/TransitionBase.java @ 657:af3f56758f59
merged gnv-artifacts/0.5
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:13:53 +0200 |
parents | a887074460b6 |
children | 9a828e5a2390 |
comparison
equal
deleted
inserted
replaced
590:5f5f273c8566 | 657:af3f56758f59 |
---|---|
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 } |