Class GovernanceFlowTypeImpl<F extends java.lang.Enum<F>>
- java.lang.Object
-
- net.officefloor.compile.impl.governance.GovernanceFlowTypeImpl<F>
-
- All Implemented Interfaces:
GovernanceFlowType<F>
public class GovernanceFlowTypeImpl<F extends java.lang.Enum<F>> extends java.lang.Object implements GovernanceFlowType<F>
GovernanceFlowType
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description GovernanceFlowTypeImpl(int index, java.lang.Class<?> argumentType, F key, java.lang.String label)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getArgumentType()
Obtains the type of the argument passed by theGovernanceActivity
to theFlow
.java.lang.String
getFlowName()
Obtains the name for theGovernanceFlowType
.int
getIndex()
Obtains the index for theGovernanceFlowType
.F
getKey()
Obtains theEnum
key for theGovernanceFlowType
.
-
-
-
Constructor Detail
-
GovernanceFlowTypeImpl
public GovernanceFlowTypeImpl(int index, java.lang.Class<?> argumentType, F key, java.lang.String label)
- 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:GovernanceFlowType
Obtains the name for theGovernanceFlowType
.- Specified by:
getFlowName
in interfaceGovernanceFlowType<F extends java.lang.Enum<F>>
- Returns:
- Name for the
GovernanceFlowType
.
-
getIndex
public int getIndex()
Description copied from interface:GovernanceFlowType
Obtains the index for the
GovernanceFlowType
.Should there be an
Enum
then will be theEnum.ordinal()
value. Otherwise will be the index that this was added.- Specified by:
getIndex
in interfaceGovernanceFlowType<F extends java.lang.Enum<F>>
- Returns:
- Index for the
GovernanceFlowType
.
-
getArgumentType
public java.lang.Class<?> getArgumentType()
Description copied from interface:GovernanceFlowType
Obtains the type of the argument passed by theGovernanceActivity
to theFlow
.- Specified by:
getArgumentType
in interfaceGovernanceFlowType<F extends java.lang.Enum<F>>
- Returns:
- Type of argument passed to
Flow
. May benull
to indicate no argument.
-
getKey
public F getKey()
Description copied from interface:GovernanceFlowType
Obtains theEnum
key for theGovernanceFlowType
.- Specified by:
getKey
in interfaceGovernanceFlowType<F extends java.lang.Enum<F>>
- Returns:
Enum
key for theGovernanceFlowType
. May benull
if noEnum
for flows.
-
-