Class FlowElementImpl<COMPONENT>

  • All Implemented Interfaces:
    org.ikasan.spec.flow.FlowElement<COMPONENT>

    public class FlowElementImpl<COMPONENT>
    extends java.lang.Object
    implements org.ikasan.spec.flow.FlowElement<COMPONENT>
    Simple implementation of FlowElement
    Author:
    Ikasan Development Team
    • Field Summary

      • Fields inherited from interface org.ikasan.spec.flow.FlowElement

        DEFAULT_TRANSITION_NAME, SUBFLOW_TRANSITION_NAME
    • Constructor Summary

      Constructors 
      Constructor Description
      FlowElementImpl​(java.lang.String componentName, COMPONENT flowComponent, org.ikasan.spec.flow.FlowElementInvoker<COMPONENT> flowElementInvoker)
      Overloaded constructor for a FlowElement with no downstream
      FlowElementImpl​(java.lang.String componentName, COMPONENT flowComponent, org.ikasan.spec.flow.FlowElementInvoker<COMPONENT> flowElementInvoker, java.util.Map<java.lang.String,​org.ikasan.spec.flow.FlowElement> transitions)
      Constructor for when there are more than one subsequent FlowElements
      FlowElementImpl​(java.lang.String componentName, COMPONENT flowComponent, org.ikasan.spec.flow.FlowElementInvoker<COMPONENT> flowElementInvoker, org.ikasan.spec.flow.FlowElement defaultTransition)
      Overloaded constructor for when there is at most one subsequent FlowElement
    • Constructor Detail

      • FlowElementImpl

        public FlowElementImpl​(java.lang.String componentName,
                               COMPONENT flowComponent,
                               org.ikasan.spec.flow.FlowElementInvoker<COMPONENT> flowElementInvoker,
                               java.util.Map<java.lang.String,​org.ikasan.spec.flow.FlowElement> transitions)
        Constructor for when there are more than one subsequent FlowElements
        Parameters:
        componentName - The name of the component
        flowComponent - The FlowComponent
        transitions - A map of transitions
      • FlowElementImpl

        public FlowElementImpl​(java.lang.String componentName,
                               COMPONENT flowComponent,
                               org.ikasan.spec.flow.FlowElementInvoker<COMPONENT> flowElementInvoker,
                               org.ikasan.spec.flow.FlowElement defaultTransition)
        Overloaded constructor for when there is at most one subsequent FlowElement
        Parameters:
        componentName - The name of the component
        flowComponent - The FlowComponent
        defaultTransition - The default transition
      • FlowElementImpl

        public FlowElementImpl​(java.lang.String componentName,
                               COMPONENT flowComponent,
                               org.ikasan.spec.flow.FlowElementInvoker<COMPONENT> flowElementInvoker)
        Overloaded constructor for a FlowElement with no downstream
        Parameters:
        componentName - The name of the component
        flowComponent - The FlowComponent
    • Method Detail

      • getFlowComponent

        public COMPONENT getFlowComponent()
        Specified by:
        getFlowComponent in interface org.ikasan.spec.flow.FlowElement<COMPONENT>
      • getComponentName

        public java.lang.String getComponentName()
        Specified by:
        getComponentName in interface org.ikasan.spec.flow.FlowElement<COMPONENT>
      • getTransition

        public org.ikasan.spec.flow.FlowElement getTransition​(java.lang.String transitionName)
        Specified by:
        getTransition in interface org.ikasan.spec.flow.FlowElement<COMPONENT>
      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in interface org.ikasan.spec.flow.FlowElement<COMPONENT>
      • setDescription

        public void setDescription​(java.lang.String description)
        Setter for description
        Parameters:
        description -
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getFlowElementInvoker

        public org.ikasan.spec.flow.FlowElementInvoker<COMPONENT> getFlowElementInvoker()
        Getter for the flow element invoker
        Specified by:
        getFlowElementInvoker in interface org.ikasan.spec.flow.FlowElement<COMPONENT>
        Returns:
      • setFlowElementInvoker

        public void setFlowElementInvoker​(org.ikasan.spec.flow.FlowElementInvoker<COMPONENT> flowElementInvoker)
        Setter for the flow element invoker
        Specified by:
        setFlowElementInvoker in interface org.ikasan.spec.flow.FlowElement<COMPONENT>
        Parameters:
        flowElementInvoker -
      • getTransitions

        public java.util.Map<java.lang.String,​org.ikasan.spec.flow.FlowElement> getTransitions()
        Specified by:
        getTransitions in interface org.ikasan.spec.flow.FlowElement<COMPONENT>