ingo@1115: /* ingo@1115: * Copyright (c) 2010 by Intevation GmbH ingo@1115: * ingo@1115: * This program is free software under the LGPL (>=v2.1) ingo@1115: * Read the file LGPL.txt coming with the software for details ingo@1115: * or visit http://www.gnu.org/licenses/ if it does not exist. ingo@1115: */ ingo@1115: tim@337: package de.intevation.gnv.transition; tim@337: sascha@779: import de.intevation.artifactdatabase.Config; sascha@779: tim@337: import org.w3c.dom.Node; tim@337: tim@337: /** ingo@813: * An abstract implementation of Transition. sascha@835: * sascha@780: * @author Tim Englich tim@337: * tim@337: */ tim@337: public abstract class TransitionBase implements Transition { tim@337: tim@337: /** tim@337: * The UID of this Class. tim@337: */ tim@337: private static final long serialVersionUID = -8542097519466477977L; tim@337: tim@337: private String from = null; sascha@778: tim@337: private String to = null; tim@337: /** tim@337: * Constructor tim@337: */ tim@337: public TransitionBase() { tim@337: } tim@337: ingo@813: tim@337: public String getFrom() { tim@337: return this.from; tim@337: } tim@337: ingo@813: tim@337: public String getTo() { tim@337: return this.to; tim@337: } sascha@778: ingo@813: tim@337: public void setup(Node configuration) { tim@337: this.from = Config.getStringXPath(configuration,"from/@state"); tim@337: this.to = Config.getStringXPath(configuration,"to/@state"); tim@337: } tim@337: } sascha@836: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :