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
.
ingo@813: *
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: }
ingo@813: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :