Class ManagedObjectFlowTypeImpl<F extends java.lang.Enum<F>>
- java.lang.Object
-
- net.officefloor.compile.impl.managedobject.ManagedObjectFlowTypeImpl<F>
-
- All Implemented Interfaces:
ManagedObjectFlowType<F>
public class ManagedObjectFlowTypeImpl<F extends java.lang.Enum<F>> extends java.lang.Object implements ManagedObjectFlowType<F>
ManagedObjectFlowType
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ManagedObjectFlowTypeImpl(int index, java.lang.Class<?> argumentType, F key, java.lang.String label)
Initiate for aManagedObjectFlowType
invoked from aManagedFunction
added by theManagedObjectSource
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getArgumentType()
Obtains the type of the argument passed to theFlow
.java.lang.String
getFlowName()
Obtains the name of theFlow
.int
getIndex()
Obtains the index identifying theFlow
.F
getKey()
Obtains the key identifying theFlow
.
-
-
-
Constructor Detail
-
ManagedObjectFlowTypeImpl
public ManagedObjectFlowTypeImpl(int index, java.lang.Class<?> argumentType, F key, java.lang.String label)
Initiate for aManagedObjectFlowType
invoked from aManagedFunction
added by theManagedObjectSource
.- Parameters:
index
- Index identifying this flow.argumentType
- Type of argument given to this flow. May benull
.key
- Key identifying this flow. May benull
.label
- Label describing this flow. May benull
.
-
-
Method Detail
-
getFlowName
public java.lang.String getFlowName()
Description copied from interface:ManagedObjectFlowType
Obtains the name of theFlow
.- Specified by:
getFlowName
in interfaceManagedObjectFlowType<F extends java.lang.Enum<F>>
- Returns:
- Name of the
Flow
.
-
getIndex
public int getIndex()
Description copied from interface:ManagedObjectFlowType
Obtains the index identifying theFlow
.- Specified by:
getIndex
in interfaceManagedObjectFlowType<F extends java.lang.Enum<F>>
- Returns:
- Index identifying the
Flow
.
-
getArgumentType
public java.lang.Class<?> getArgumentType()
Description copied from interface:ManagedObjectFlowType
Obtains the type of the argument passed to theFlow
.- Specified by:
getArgumentType
in interfaceManagedObjectFlowType<F extends java.lang.Enum<F>>
- Returns:
- Type of argument passed to the
Flow
. May benull
to indicate no argument.
-
getKey
public F getKey()
Description copied from interface:ManagedObjectFlowType
Obtains the key identifying theFlow
.- Specified by:
getKey
in interfaceManagedObjectFlowType<F extends java.lang.Enum<F>>
- Returns:
- Key identifying the
Flow
.
-
-