Class ProcedureTypeImpl
- java.lang.Object
-
- net.officefloor.activity.impl.procedure.ProcedureTypeImpl
-
- All Implemented Interfaces:
ProcedureType
public class ProcedureTypeImpl extends java.lang.Object implements ProcedureType
ProcedureType
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ProcedureTypeImpl(java.lang.String procedureName, java.lang.Class<?> parameterType, ProcedureObjectType[] objectTypes, ProcedureVariableType[] variableTypes, ProcedureFlowType[] flowTypes, ProcedureEscalationType[] escalationTypes, java.lang.Class<?> nextArgumentType)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcedureEscalationType[]
getEscalationTypes()
Obtains theProcedureEscalationType
definitions for the possibleEscalationFlow
instances by theProcedure
.ProcedureFlowType[]
getFlowTypes()
Obtains theProcedureFlowType
definitions for the possibleFlow
instances instigated by theProcedure
.java.lang.Class<?>
getNextArgumentType()
ProcedureObjectType[]
getObjectTypes()
Obtains theProcedureObjectType
definitions for the dependentObject
instances required by theProcedure
.java.lang.Class<?>
getParameterType()
Obtains the type name of theParameter
.java.lang.String
getProcedureName()
Obtains the name of theProcedure
.ProcedureVariableType[]
getVariableTypes()
-
-
-
Constructor Detail
-
ProcedureTypeImpl
public ProcedureTypeImpl(java.lang.String procedureName, java.lang.Class<?> parameterType, ProcedureObjectType[] objectTypes, ProcedureVariableType[] variableTypes, ProcedureFlowType[] flowTypes, ProcedureEscalationType[] escalationTypes, java.lang.Class<?> nextArgumentType)
Instantiate.- Parameters:
procedureName
- Name ofProcedure
.parameterType
-Parameter
type forProcedure
.objectTypes
-ProcedureObjectType
instances.variableTypes
-ProcedureVariableType
instances.flowTypes
-ProcedureFlowType
instances.escalationTypes
-ProcedureEscalationType
instances.nextArgumentType
- Next argument type.
-
-
Method Detail
-
getProcedureName
public java.lang.String getProcedureName()
Description copied from interface:ProcedureType
Obtains the name of theProcedure
.- Specified by:
getProcedureName
in interfaceProcedureType
- Returns:
- Name of the
Procedure
.
-
getParameterType
public java.lang.Class<?> getParameterType()
Description copied from interface:ProcedureType
Obtains the type name of theParameter
.- Specified by:
getParameterType
in interfaceProcedureType
- Returns:
- Type name of the
Parameter
. May benull
if noParameter
.
-
getObjectTypes
public ProcedureObjectType[] getObjectTypes()
Description copied from interface:ProcedureType
Obtains theProcedureObjectType
definitions for the dependentObject
instances required by theProcedure
.- Specified by:
getObjectTypes
in interfaceProcedureType
- Returns:
ProcedureObjectType
definitions for the dependentObject
instances required by theProcedure
.
-
getVariableTypes
public ProcedureVariableType[] getVariableTypes()
Description copied from interface:ProcedureType
- Specified by:
getVariableTypes
in interfaceProcedureType
- Returns:
ProcedureVariableType
definitions for theVar
instances required by theProcedure
.
-
getFlowTypes
public ProcedureFlowType[] getFlowTypes()
Description copied from interface:ProcedureType
Obtains theProcedureFlowType
definitions for the possibleFlow
instances instigated by theProcedure
.- Specified by:
getFlowTypes
in interfaceProcedureType
- Returns:
ProcedureFlowType
definitions for the possibleFlow
instances instigated by theProcedure
.
-
getEscalationTypes
public ProcedureEscalationType[] getEscalationTypes()
Description copied from interface:ProcedureType
Obtains theProcedureEscalationType
definitions for the possibleEscalationFlow
instances by theProcedure
.- Specified by:
getEscalationTypes
in interfaceProcedureType
- Returns:
ProcedureEscalationType
definitions for the possibleEscalationFlow
instances by theProcedure
.
-
getNextArgumentType
public java.lang.Class<?> getNextArgumentType()
Description copied from interface:ProcedureType
- Specified by:
getNextArgumentType
in interfaceProcedureType
- Returns:
- Type name of
Object
passed to theNext
ManagedFunction
. May benull
if no argument.
-
-