Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/transition/TransitionBase.java @ 1119:7c4f81f74c47
merged gnv-artifacts
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:00 +0200 |
parents | dec4257ad570 |
children |
comparison
equal
deleted
inserted
replaced
1027:fca4b5eb8d2f | 1119:7c4f81f74c47 |
---|---|
1 /* | |
2 * Copyright (c) 2010 by Intevation GmbH | |
3 * | |
4 * This program is free software under the LGPL (>=v2.1) | |
5 * Read the file LGPL.txt coming with the software for details | |
6 * or visit http://www.gnu.org/licenses/ if it does not exist. | |
7 */ | |
8 | |
9 package de.intevation.gnv.transition; | |
10 | |
11 import de.intevation.artifacts.common.utils.Config; | |
12 | |
13 import org.w3c.dom.Node; | |
14 | |
15 /** | |
16 * An abstract implementation of <code>Transition</code>. | |
17 * | |
18 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> | |
19 * | |
20 */ | |
21 public abstract class TransitionBase implements Transition { | |
22 | |
23 /** | |
24 * The UID of this Class. | |
25 */ | |
26 private static final long serialVersionUID = -8542097519466477977L; | |
27 | |
28 private String from = null; | |
29 | |
30 private String to = null; | |
31 /** | |
32 * Constructor | |
33 */ | |
34 public TransitionBase() { | |
35 } | |
36 | |
37 | |
38 public String getFrom() { | |
39 return this.from; | |
40 } | |
41 | |
42 | |
43 public String getTo() { | |
44 return this.to; | |
45 } | |
46 | |
47 | |
48 public void setup(Node configuration) { | |
49 this.from = Config.getStringXPath(configuration,"from/@state"); | |
50 this.to = Config.getStringXPath(configuration,"to/@state"); | |
51 } | |
52 } | |
53 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |