Class ManagedFunctionFlowTypeImpl<F extends java.lang.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 java.lang.Enum<F>> extends java.lang.Object implements ManagedFunctionFlowType<F>, ManagedFunctionFlowTypeBuilder<F>
ManagedFunctionFlowTypeimplementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ManagedFunctionFlowTypeImpl(int index)Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagedFunctionFlowTypeBuilder<F>addAnnotation(java.lang.Object annotation)Adds an annotation.java.lang.Object[]getAnnotations()Obtains the annotations.java.lang.Class<?>getArgumentType()Obtains the type of the argument passed by theManagedFunctionto theFlow.java.lang.StringgetFlowName()Obtains the name for theManagedFunctionFlowType.intgetIndex()Obtains the index for theManagedFunctionFlowType.FgetKey()Obtains theEnumkey for theManagedFunctionFlowType.ManagedFunctionFlowTypeBuilder<F>setArgumentType(java.lang.Class<?> argumentType)Specifies the type of the argument passed by theManagedFunctionto theFlow.ManagedFunctionFlowTypeBuilder<F>setKey(F key)Specifies theEnumfor thisManagedFunctionFlowTypeBuilder.ManagedFunctionFlowTypeBuilder<F>setLabel(java.lang.String label)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, wait
-
Methods inherited from interface net.officefloor.compile.type.AnnotatedType
getAnnotation, getAnnotations
-
-
-
-
Constructor Detail
-
ManagedFunctionFlowTypeImpl
public ManagedFunctionFlowTypeImpl(int index)
Initiate.- Parameters:
index- Index of thisManagedFunctionFlowType.
-
-
Method Detail
-
setKey
public ManagedFunctionFlowTypeBuilder<F> setKey(F key)
Description copied from interface:ManagedFunctionFlowTypeBuilderSpecifies theEnumfor thisManagedFunctionFlowTypeBuilder. This is required to be set ifFis notNoneorIndexed.- Specified by:
setKeyin interfaceManagedFunctionFlowTypeBuilder<F extends java.lang.Enum<F>>- Parameters:
key-Enumfor thisManagedFunctionFlowTypeBuilder.- Returns:
this.
-
setArgumentType
public ManagedFunctionFlowTypeBuilder<F> setArgumentType(java.lang.Class<?> argumentType)
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 java.lang.Enum<F>>- Parameters:
argumentType- Type of argument passed toFlow.- Returns:
this.
-
setLabel
public ManagedFunctionFlowTypeBuilder<F> setLabel(java.lang.String label)
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
- Specified by:
setLabelin interfaceManagedFunctionFlowTypeBuilder<F extends java.lang.Enum<F>>- Parameters:
label- Display label for theFlow.- Returns:
this.
-
addAnnotation
public ManagedFunctionFlowTypeBuilder<F> addAnnotation(java.lang.Object annotation)
Description copied from interface:ManagedFunctionFlowTypeBuilderAdds an annotation.- Specified by:
addAnnotationin interfaceManagedFunctionFlowTypeBuilder<F extends java.lang.Enum<F>>- Parameters:
annotation- Annotation.- Returns:
this.
-
getFlowName
public java.lang.String getFlowName()
Description copied from interface:ManagedFunctionFlowTypeObtains the name for theManagedFunctionFlowType.- Specified by:
getFlowNamein interfaceManagedFunctionFlowType<F extends java.lang.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 java.lang.Enum<F>>- Specified by:
getIndexin interfaceManagedFunctionFlowTypeBuilder<F extends java.lang.Enum<F>>- Returns:
- Index for the
ManagedFunctionFlowType.
-
getArgumentType
public java.lang.Class<?> getArgumentType()
Description copied from interface:ManagedFunctionFlowTypeObtains the type of the argument passed by theManagedFunctionto theFlow.- Specified by:
getArgumentTypein interfaceManagedFunctionFlowType<F extends java.lang.Enum<F>>- Returns:
- Type of argument passed to
Flow. May benullto indicate no argument.
-
getKey
public F getKey()
Description copied from interface:ManagedFunctionFlowTypeObtains theEnumkey for theManagedFunctionFlowType.- Specified by:
getKeyin interfaceManagedFunctionFlowType<F extends java.lang.Enum<F>>- Returns:
Enumkey for theManagedFunctionFlowType. May benullif noEnumfor flows.
-
getAnnotations
public java.lang.Object[] getAnnotations()
Description copied from interface:AnnotatedTypeObtains the annotations.- Specified by:
getAnnotationsin interfaceAnnotatedType- Returns:
- Annotations.
-
-