Class ManagedFunctionEscalationTypeImpl
- java.lang.Object
-
- net.officefloor.compile.impl.managedfunction.ManagedFunctionEscalationTypeImpl
-
- All Implemented Interfaces:
ManagedFunctionEscalationType
,ManagedFunctionEscalationTypeBuilder
public class ManagedFunctionEscalationTypeImpl extends java.lang.Object implements ManagedFunctionEscalationType, ManagedFunctionEscalationTypeBuilder
ManagedFunctionEscalationType
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ManagedFunctionEscalationTypeImpl(java.lang.Class<?> escalationType)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getEscalationName()
Obtains the name for theManagedFunctionEscalationType
.<E extends java.lang.Throwable>
java.lang.Class<E>getEscalationType()
Obtains the type ofEscalationFlow
by theManagedFunction
.ManagedFunctionEscalationTypeBuilder
setLabel(java.lang.String label)
Provides means to specify a display label for theEscalationFlow
.
-
-
-
Constructor Detail
-
ManagedFunctionEscalationTypeImpl
public ManagedFunctionEscalationTypeImpl(java.lang.Class<?> escalationType)
Initiate.- Parameters:
escalationType
- Type of theEscalationFlow
.
-
-
Method Detail
-
setLabel
public ManagedFunctionEscalationTypeBuilder setLabel(java.lang.String label)
Description copied from interface:ManagedFunctionEscalationTypeBuilder
Provides means to specify a display label for the
EscalationFlow
.This need not be set as is only an aid to better identify the
EscalationFlow
. If not set it will use theSimple
name of theEscalationFlow
Class
.- Specified by:
setLabel
in interfaceManagedFunctionEscalationTypeBuilder
- Parameters:
label
- Display label for theEscalationFlow
.- Returns:
this
.
-
getEscalationType
public <E extends java.lang.Throwable> java.lang.Class<E> getEscalationType()
Description copied from interface:ManagedFunctionEscalationType
Obtains the type ofEscalationFlow
by theManagedFunction
.- Specified by:
getEscalationType
in interfaceManagedFunctionEscalationType
- Type Parameters:
E
-Escalation
type.- Returns:
- Type of
EscalationFlow
by theManagedFunction
.
-
getEscalationName
public java.lang.String getEscalationName()
Description copied from interface:ManagedFunctionEscalationType
Obtains the name for theManagedFunctionEscalationType
.- Specified by:
getEscalationName
in interfaceManagedFunctionEscalationType
- Returns:
- Name for the
ManagedFunctionEscalationType
.
-
-