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>
GovernanceFlowTypeimplementation.- 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 theGovernanceActivityto theFlow.java.lang.StringgetFlowName()Obtains the name for theGovernanceFlowType.intgetIndex()Obtains the index for theGovernanceFlowType.FgetKey()Obtains theEnumkey 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:GovernanceFlowTypeObtains the name for theGovernanceFlowType.- Specified by:
getFlowNamein interfaceGovernanceFlowType<F extends java.lang.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 java.lang.Enum<F>>- Returns:
- Index for the
GovernanceFlowType.
-
getArgumentType
public java.lang.Class<?> getArgumentType()
Description copied from interface:GovernanceFlowTypeObtains the type of the argument passed by theGovernanceActivityto theFlow.- Specified by:
getArgumentTypein interfaceGovernanceFlowType<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:GovernanceFlowTypeObtains theEnumkey for theGovernanceFlowType.- Specified by:
getKeyin interfaceGovernanceFlowType<F extends java.lang.Enum<F>>- Returns:
Enumkey for theGovernanceFlowType. May benullif noEnumfor flows.
-
-