All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.itsallcode.openfasttrace.importer.markdown.Transition Maven / Gradle / Ivy

There is a newer version: 4.1.0
Show newest version
package org.itsallcode.openfasttrace.importer.markdown;

/*-
 * #%L
 \* OpenFastTrace
 * %%
 * Copyright (C) 2016 - 2017 itsallcode.org
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public
 * License along with this program.  If not, see
 * .
 * #L%
 */

class Transition
{
    private final State from;
    private final State to;
    private final MdPattern markdownPattern;
    private final TransitionAction transitionAction;

    public Transition(final State from, final State to, final MdPattern markdownPattern,
            final TransitionAction transitionAction)
    {
        this.from = from;
        this.to = to;
        this.markdownPattern = markdownPattern;
        this.transitionAction = transitionAction;
    }

    public State getFrom()
    {
        return this.from;
    }

    public State getTo()
    {
        return this.to;
    }

    public MdPattern getMarkdownPattern()
    {
        return this.markdownPattern;
    }

    public TransitionAction getTransition()
    {
        return this.transitionAction;
    }

    @Override
    public String toString()
    {
        return "Transition [from=" + this.from + ", to=" + this.to + ", markdownPattern="
                + this.markdownPattern + "]";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy