package org.ikasan.rest.dashboard.model.metadata.module;

import org.ikasan.spec.metadata.FlowElementMetaData;
import org.ikasan.spec.metadata.FlowMetaData;
import org.ikasan.spec.metadata.Transition;

import java.util.ArrayList;
import java.util.List;

public class FlowMetaDataImpl implements FlowMetaData
{
    private String name;
    private FlowElementMetaData consumer;
    private List<Transition> transitions = new ArrayList<>();
    private List<FlowElementMetaData> flowElements = new ArrayList<>();
    private String configurationId;

    @Override
    public void setName(String name)
    {
        this.name = name;
    }

    @Override
    public String getName()
    {
        return this.name;
    }

    @Override
    public void setConsumer(FlowElementMetaData consumer)
    {
        this.consumer = consumer;
    }

    @Override
    public FlowElementMetaData getConsumer()
    {
        return this.consumer;
    }

    @Override
    public List<Transition> getTransitions()
    {
        return this.transitions;
    }

    @Override
    public void setTransitions(List<Transition> transitions)
    {
        this.transitions = transitions;
    }

    @Override
    public List<FlowElementMetaData> getFlowElements()
    {
        return this.flowElements;
    }

    @Override
    public void setFlowElements(List<FlowElementMetaData> flowElements)
    {
        this.flowElements = flowElements;
    }

    @Override
    public String getConfigurationId()
    {
        return this.configurationId;
    }

    @Override
    public void setConfigurationId(String configurationId)
    {
        this.configurationId = configurationId;
    }
}
