Package net.officefloor.gef.activity
Class ActivityExceptionItem
- java.lang.Object
-
- net.officefloor.gef.ide.editor.AbstractItem<R,O,R,RE,M,E>
-
- net.officefloor.gef.ide.editor.AbstractConfigurableItem<R,RE,O,M,E,I>
-
- net.officefloor.gef.item.AbstractExceptionItem<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges,ActivityExceptionModel,ActivityExceptionModel.ActivityExceptionEvent,ActivityExceptionItem>
-
- net.officefloor.gef.activity.ActivityExceptionItem
-
- All Implemented Interfaces:
ConfigurableItem<ActivityExceptionItem>
public class ActivityExceptionItem extends AbstractExceptionItem<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges,ActivityExceptionModel,ActivityExceptionModel.ActivityExceptionEvent,ActivityExceptionItem>
Configuration for theActivityExceptionModel
.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.officefloor.gef.ide.editor.AbstractConfigurableItem
AbstractConfigurableItem.ConfigurableModelContext<O,M>, AbstractConfigurableItem.IdeConfiguration<O,M extends Model,I>, AbstractConfigurableItem.IdeConfigurer, AbstractConfigurableItem.ItemActioner<O,M>, AbstractConfigurableItem.ItemConfigurer<O,M,I>
-
Nested classes/interfaces inherited from class net.officefloor.gef.ide.editor.AbstractItem
AbstractItem.ConfigurableContext<R extends Model,O>, AbstractItem.IdeChildrenGroup, AbstractItem.IdeConnection<C extends ConnectionModel>, AbstractItem.IdeConnectionTarget<C extends ConnectionModel,T extends Model,TE extends java.lang.Enum<TE>>, AbstractItem.IdeExtractor, AbstractItem.IdeLabeller, AbstractItem.IdeStyle, AbstractItem.PreferenceListener
-
-
Field Summary
-
Fields inherited from class net.officefloor.gef.item.AbstractExceptionItem
exceptionClassName
-
Fields inherited from class net.officefloor.gef.ide.editor.AbstractItem
builder
-
-
Constructor Summary
Constructors Constructor Description ActivityExceptionItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Change<ActivityExceptionModel>
addException(ActivityChanges operations, java.lang.String exceptionClassName)
Creates aChange
to add anException
.protected void
connections(java.util.List<AbstractItem.IdeConnectionTarget<? extends ConnectionModel,?,?>> connections)
Loads theAbstractItem.IdeConnectionTarget
instances (created fromAbstractItem.IdeConnection
instances).protected ActivityExceptionItem
createItem()
Creates theAbstractExceptionItem
implementation.AbstractItem.IdeExtractor
extract()
protected java.lang.String
getExceptionClassName(ActivityExceptionModel model)
Obtains theException
Class
name.protected java.lang.Class<? extends ConnectionModel>[]
getInputConnectionClasses()
Obtains the inputConnectionModel
Class
instances.AbstractItem.IdeLabeller
label()
Obtains theAbstractItem.IdeLabeller
for theModel
.void
loadToParent(ActivityModel parentModel, ActivityExceptionModel itemModel)
ActivityExceptionModel
prototype()
Creates the prototype for the item.protected Change<ActivityExceptionModel>
refactorException(ActivityChanges operations, ActivityExceptionModel model, java.lang.String exceptionClassName)
Creates aChange
to refactor theException
.protected Change<ActivityExceptionModel>
removeException(ActivityChanges operations, ActivityExceptionModel model)
Creates aChange
to remove theException
.-
Methods inherited from class net.officefloor.gef.item.AbstractExceptionItem
configure, item, loadStyles, visual
-
Methods inherited from class net.officefloor.gef.ide.editor.AbstractConfigurableItem
createAdaptedParent, extractIdeConfiguration, furtherAdapt
-
Methods inherited from class net.officefloor.gef.ide.editor.AbstractItem
children, createChild, furtherAdapt, getBuilder, getChildrenGroups, getConfigurableContext, getConnections, getPreferenceStyleId, init, style, translateFromCommaSeparatedList, translateToCommaSeparateList, translateToNameMappings, translateToPropertyList
-
-
-
-
Method Detail
-
prototype
public ActivityExceptionModel prototype()
Description copied from class:AbstractItem
Creates the prototype for the item.- Specified by:
prototype
in classAbstractItem<ActivityModel,ActivityChanges,ActivityModel,ActivityModel.ActivityEvent,ActivityExceptionModel,ActivityExceptionModel.ActivityExceptionEvent>
- Returns:
- Prototype.
-
extract
public AbstractItem.IdeExtractor extract()
Description copied from class:AbstractItem
- Specified by:
extract
in classAbstractItem<ActivityModel,ActivityChanges,ActivityModel,ActivityModel.ActivityEvent,ActivityExceptionModel,ActivityExceptionModel.ActivityExceptionEvent>
- Returns:
AbstractItem.IdeExtractor
.
-
loadToParent
public void loadToParent(ActivityModel parentModel, ActivityExceptionModel itemModel)
Description copied from class:AbstractItem
Loads theModel
to the parentModel
. This allows for constructing a prototype model for editing preferences of theAbstractAdaptedIdeEditor
.- Specified by:
loadToParent
in classAbstractItem<ActivityModel,ActivityChanges,ActivityModel,ActivityModel.ActivityEvent,ActivityExceptionModel,ActivityExceptionModel.ActivityExceptionEvent>
- Parameters:
parentModel
- ParentModel
.itemModel
- ItemModel
.
-
label
public AbstractItem.IdeLabeller label()
Description copied from class:AbstractItem
Obtains theAbstractItem.IdeLabeller
for theModel
.- Specified by:
label
in classAbstractItem<ActivityModel,ActivityChanges,ActivityModel,ActivityModel.ActivityEvent,ActivityExceptionModel,ActivityExceptionModel.ActivityExceptionEvent>
- Returns:
AbstractItem.IdeLabeller
.
-
createItem
protected ActivityExceptionItem createItem()
Description copied from class:AbstractExceptionItem
Creates theAbstractExceptionItem
implementation.- Specified by:
createItem
in classAbstractExceptionItem<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges,ActivityExceptionModel,ActivityExceptionModel.ActivityExceptionEvent,ActivityExceptionItem>
- Returns:
AbstractExceptionItem
implementation.
-
getExceptionClassName
protected java.lang.String getExceptionClassName(ActivityExceptionModel model)
Description copied from class:AbstractExceptionItem
Obtains theException
Class
name.- Specified by:
getExceptionClassName
in classAbstractExceptionItem<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges,ActivityExceptionModel,ActivityExceptionModel.ActivityExceptionEvent,ActivityExceptionItem>
- Parameters:
model
-Model
.- Returns:
Exception
Class
name.
-
getInputConnectionClasses
protected java.lang.Class<? extends ConnectionModel>[] getInputConnectionClasses()
Description copied from class:AbstractExceptionItem
Obtains the inputConnectionModel
Class
instances.- Specified by:
getInputConnectionClasses
in classAbstractExceptionItem<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges,ActivityExceptionModel,ActivityExceptionModel.ActivityExceptionEvent,ActivityExceptionItem>
- Returns:
- Input
ConnectionModel
Class
instances.
-
connections
protected void connections(java.util.List<AbstractItem.IdeConnectionTarget<? extends ConnectionModel,?,?>> connections)
Description copied from class:AbstractItem
Loads theAbstractItem.IdeConnectionTarget
instances (created fromAbstractItem.IdeConnection
instances).- Overrides:
connections
in classAbstractItem<ActivityModel,ActivityChanges,ActivityModel,ActivityModel.ActivityEvent,ActivityExceptionModel,ActivityExceptionModel.ActivityExceptionEvent>
- Parameters:
connections
-AbstractItem.IdeConnection
instances.
-
addException
protected Change<ActivityExceptionModel> addException(ActivityChanges operations, java.lang.String exceptionClassName)
Description copied from class:AbstractExceptionItem
Creates aChange
to add anException
.- Specified by:
addException
in classAbstractExceptionItem<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges,ActivityExceptionModel,ActivityExceptionModel.ActivityExceptionEvent,ActivityExceptionItem>
- Parameters:
operations
- Operations.exceptionClassName
-Exception
Class
name.- Returns:
Change
to add anException
.
-
refactorException
protected Change<ActivityExceptionModel> refactorException(ActivityChanges operations, ActivityExceptionModel model, java.lang.String exceptionClassName)
Description copied from class:AbstractExceptionItem
Creates aChange
to refactor theException
.- Specified by:
refactorException
in classAbstractExceptionItem<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges,ActivityExceptionModel,ActivityExceptionModel.ActivityExceptionEvent,ActivityExceptionItem>
- Parameters:
operations
- Operations.model
-Model
to refactor.exceptionClassName
-Exception
Class
name.- Returns:
Change
to refactor theException
.
-
removeException
protected Change<ActivityExceptionModel> removeException(ActivityChanges operations, ActivityExceptionModel model)
Description copied from class:AbstractExceptionItem
Creates aChange
to remove theException
.- Specified by:
removeException
in classAbstractExceptionItem<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges,ActivityExceptionModel,ActivityExceptionModel.ActivityExceptionEvent,ActivityExceptionItem>
- Parameters:
operations
- Operations.model
-Model
to remove.- Returns:
Change
to remove theException
.
-
-