Interface ManagedFunctionFlowTypeBuilder<F extends java.lang.Enum<F>>
-
- All Known Implementing Classes:
ManagedFunctionFlowTypeImpl
public interface ManagedFunctionFlowTypeBuilder<F extends java.lang.Enum<F>>
Provides means for theManagedFunctionSource
to provide atype definition
of a possibleFlow
instigated by theManagedFunction
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ManagedFunctionFlowTypeBuilder<F>
addAnnotation(java.lang.Object annotation)
Adds an annotation.int
getIndex()
Obtains the index of theFlow
.ManagedFunctionFlowTypeBuilder<F>
setArgumentType(java.lang.Class<?> argumentType)
Specifies the type of the argument passed by theManagedFunction
to theFlow
.ManagedFunctionFlowTypeBuilder<F>
setKey(F key)
Specifies theEnum
for thisManagedFunctionFlowTypeBuilder
.ManagedFunctionFlowTypeBuilder<F>
setLabel(java.lang.String label)
Provides means to specify a display label for theFlow
.
-
-
-
Method Detail
-
setKey
ManagedFunctionFlowTypeBuilder<F> setKey(F key)
Specifies theEnum
for thisManagedFunctionFlowTypeBuilder
. This is required to be set ifF
is notNone
orIndexed
.- Parameters:
key
-Enum
for thisManagedFunctionFlowTypeBuilder
.- Returns:
this
.
-
setArgumentType
ManagedFunctionFlowTypeBuilder<F> setArgumentType(java.lang.Class<?> argumentType)
Specifies the type of the argument passed by the
ManagedFunction
to theFlow
.Should there be no argument, do not call this method.
- Parameters:
argumentType
- Type of argument passed toFlow
.- Returns:
this
.
-
setLabel
ManagedFunctionFlowTypeBuilder<F> setLabel(java.lang.String label)
Provides 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 theManagedFunctionTypeBuilder
will use the following order to get a display label:Enum
key name- index value
- Parameters:
label
- Display label for theFlow
.- Returns:
this
.
-
addAnnotation
ManagedFunctionFlowTypeBuilder<F> addAnnotation(java.lang.Object annotation)
Adds an annotation.- Parameters:
annotation
- Annotation.- Returns:
this
.
-
-