Package org.ikasan.flow.visitorPattern
Class FlowElementImpl<COMPONENT>
- java.lang.Object
-
- org.ikasan.flow.visitorPattern.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 ofFlowElement- Author:
- Ikasan Development Team
-
-
Constructor Summary
Constructors Constructor Description FlowElementImpl(java.lang.String componentName, COMPONENT flowComponent, org.ikasan.spec.flow.FlowElementInvoker<COMPONENT> flowElementInvoker)Overloaded constructor for aFlowElementwith no downstreamFlowElementImpl(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 subsequentFlowElementsFlowElementImpl(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 subsequentFlowElement
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetComponentName()java.lang.StringgetDescription()COMPONENTgetFlowComponent()org.ikasan.spec.flow.FlowElementInvoker<COMPONENT>getFlowElementInvoker()Getter for the flow element invokerorg.ikasan.spec.flow.FlowElementgetTransition(java.lang.String transitionName)java.util.Map<java.lang.String,org.ikasan.spec.flow.FlowElement>getTransitions()voidsetDescription(java.lang.String description)Setter for descriptionvoidsetFlowElementInvoker(org.ikasan.spec.flow.FlowElementInvoker<COMPONENT> flowElementInvoker)Setter for the flow element invokerjava.lang.StringtoString()
-
-
-
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 subsequentFlowElements- Parameters:
componentName- The name of the componentflowComponent- The FlowComponenttransitions- 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 subsequentFlowElement- Parameters:
componentName- The name of the componentflowComponent- The FlowComponentdefaultTransition- The default transition
-
FlowElementImpl
public FlowElementImpl(java.lang.String componentName, COMPONENT flowComponent, org.ikasan.spec.flow.FlowElementInvoker<COMPONENT> flowElementInvoker)Overloaded constructor for aFlowElementwith no downstream- Parameters:
componentName- The name of the componentflowComponent- The FlowComponent
-
-
Method Detail
-
getFlowComponent
public COMPONENT getFlowComponent()
- Specified by:
getFlowComponentin interfaceorg.ikasan.spec.flow.FlowElement<COMPONENT>
-
getComponentName
public java.lang.String getComponentName()
- Specified by:
getComponentNamein interfaceorg.ikasan.spec.flow.FlowElement<COMPONENT>
-
getTransition
public org.ikasan.spec.flow.FlowElement getTransition(java.lang.String transitionName)
- Specified by:
getTransitionin interfaceorg.ikasan.spec.flow.FlowElement<COMPONENT>
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin interfaceorg.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:
toStringin classjava.lang.Object
-
getFlowElementInvoker
public org.ikasan.spec.flow.FlowElementInvoker<COMPONENT> getFlowElementInvoker()
Getter for the flow element invoker- Specified by:
getFlowElementInvokerin interfaceorg.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:
setFlowElementInvokerin interfaceorg.ikasan.spec.flow.FlowElement<COMPONENT>- Parameters:
flowElementInvoker-
-
getTransitions
public java.util.Map<java.lang.String,org.ikasan.spec.flow.FlowElement> getTransitions()
- Specified by:
getTransitionsin interfaceorg.ikasan.spec.flow.FlowElement<COMPONENT>
-
-