Class GovernanceFlowTypeImpl<F extends Enum<F>>
java.lang.Object
net.officefloor.compile.impl.governance.GovernanceFlowTypeImpl<F>
- All Implemented Interfaces:
GovernanceFlowType<F>
public class GovernanceFlowTypeImpl<F extends Enum<F>>
extends Object
implements GovernanceFlowType<F>
GovernanceFlowType implementation.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionGovernanceFlowTypeImpl(int index, Class<?> argumentType, F key, String label) -
Method Summary
Modifier and TypeMethodDescriptionClass<?>Obtains the type of the argument passed by theGovernanceActivityto theFlow.Obtains the name for theGovernanceFlowType.intgetIndex()Obtains the index for theGovernanceFlowType.getKey()Obtains theEnumkey for theGovernanceFlowType.
-
Constructor Details
-
GovernanceFlowTypeImpl
- 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 Details
-
getFlowName
Description copied from interface:GovernanceFlowTypeObtains the name for theGovernanceFlowType.- Specified by:
getFlowNamein interfaceGovernanceFlowType<F extends Enum<F>>- Returns:
- Name for the
GovernanceFlowType.
-
getIndex
public int getIndex()Description copied from interface:GovernanceFlowTypeObtains the index for the
GovernanceFlowType.Should there be an
Enumthen will be theEnum.ordinal()value. Otherwise will be the index that this was added.- Specified by:
getIndexin interfaceGovernanceFlowType<F extends Enum<F>>- Returns:
- Index for the
GovernanceFlowType.
-
getArgumentType
Description copied from interface:GovernanceFlowTypeObtains the type of the argument passed by theGovernanceActivityto theFlow.- Specified by:
getArgumentTypein interfaceGovernanceFlowType<F extends Enum<F>>- Returns:
- Type of argument passed to
Flow. May benullto indicate no argument.
-
getKey
Description copied from interface:GovernanceFlowTypeObtains theEnumkey for theGovernanceFlowType.- Specified by:
getKeyin interfaceGovernanceFlowType<F extends Enum<F>>- Returns:
Enumkey for theGovernanceFlowType. May benullif noEnumfor flows.
-