Class ManagedFunctionFlowTypeImpl<F extends Enum<F>>
java.lang.Object
net.officefloor.compile.impl.managedfunction.ManagedFunctionFlowTypeImpl<F>
- All Implemented Interfaces:
ManagedFunctionFlowType<F>,ManagedFunctionFlowTypeBuilder<F>,AnnotatedType
public class ManagedFunctionFlowTypeImpl<F extends Enum<F>>
extends Object
implements ManagedFunctionFlowType<F>, ManagedFunctionFlowTypeBuilder<F>
ManagedFunctionFlowType implementation.- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAnnotation(Object annotation) Adds an annotation.Object[]Obtains the annotations.Class<?>Obtains the type of the argument passed by theManagedFunctionto theFlow.Obtains the name for theManagedFunctionFlowType.intgetIndex()Obtains the index for theManagedFunctionFlowType.getKey()Obtains theEnumkey for theManagedFunctionFlowType.setArgumentType(Class<?> argumentType) Specifies the type of the argument passed by theManagedFunctionto theFlow.Specifies theEnumfor thisManagedFunctionFlowTypeBuilder.Provides means to specify a display label for theFlow.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.officefloor.compile.type.AnnotatedType
getAnnotation, getAnnotations
-
Constructor Details
-
ManagedFunctionFlowTypeImpl
public ManagedFunctionFlowTypeImpl(int index) Initiate.- Parameters:
index- Index of thisManagedFunctionFlowType.
-
-
Method Details
-
setKey
Description copied from interface:ManagedFunctionFlowTypeBuilderSpecifies theEnumfor thisManagedFunctionFlowTypeBuilder. This is required to be set ifFis notNoneorIndexed.- Specified by:
setKeyin interfaceManagedFunctionFlowTypeBuilder<F extends Enum<F>>- Parameters:
key-Enumfor thisManagedFunctionFlowTypeBuilder.- Returns:
this.
-
setArgumentType
Description copied from interface:ManagedFunctionFlowTypeBuilderSpecifies the type of the argument passed by the
ManagedFunctionto theFlow.Should there be no argument, do not call this method.
- Specified by:
setArgumentTypein interfaceManagedFunctionFlowTypeBuilder<F extends Enum<F>>- Parameters:
argumentType- Type of argument passed toFlow.- Returns:
this.
-
setLabel
Description copied from interface:ManagedFunctionFlowTypeBuilderProvides means to specify a display label for the
Flow.This need not be set as is only an aid to better identify the
Flow. If not set theManagedFunctionTypeBuilderwill use the following order to get a display label:Enumkey name- index value
-
addAnnotation
Description copied from interface:ManagedFunctionFlowTypeBuilderAdds an annotation.- Specified by:
addAnnotationin interfaceManagedFunctionFlowTypeBuilder<F extends Enum<F>>- Parameters:
annotation- Annotation.- Returns:
this.
-
getFlowName
Description copied from interface:ManagedFunctionFlowTypeObtains the name for theManagedFunctionFlowType.- Specified by:
getFlowNamein interfaceManagedFunctionFlowType<F extends Enum<F>>- Returns:
- Name for the
ManagedFunctionFlowType.
-
getIndex
public int getIndex()Description copied from interface:ManagedFunctionFlowTypeObtains the index for the
ManagedFunctionFlowType.Should there be an
Enumthen will be theEnum.ordinal()value. Otherwise will be the index that this was added.- Specified by:
getIndexin interfaceManagedFunctionFlowType<F extends Enum<F>>- Specified by:
getIndexin interfaceManagedFunctionFlowTypeBuilder<F extends Enum<F>>- Returns:
- Index for the
ManagedFunctionFlowType.
-
getArgumentType
Description copied from interface:ManagedFunctionFlowTypeObtains the type of the argument passed by theManagedFunctionto theFlow.- Specified by:
getArgumentTypein interfaceManagedFunctionFlowType<F extends Enum<F>>- Returns:
- Type of argument passed to
Flow. May benullto indicate no argument.
-
getKey
Description copied from interface:ManagedFunctionFlowTypeObtains theEnumkey for theManagedFunctionFlowType.- Specified by:
getKeyin interfaceManagedFunctionFlowType<F extends Enum<F>>- Returns:
Enumkey for theManagedFunctionFlowType. May benullif noEnumfor flows.
-
getAnnotations
Description copied from interface:AnnotatedTypeObtains the annotations.- Specified by:
getAnnotationsin interfaceAnnotatedType- Returns:
- Annotations.
-