Class DisconnectChange<T>
- java.lang.Object
-
- net.officefloor.model.impl.change.AbstractChange<T>
-
- net.officefloor.model.impl.change.DisconnectChange<T>
-
- All Implemented Interfaces:
Change<T>
public abstract class DisconnectChange<T> extends AbstractChange<T>
Changeto simplify removingConnectionModelinstances.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description DisconnectChange(T target)Initiate.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidapply()Applies thisChange.protected abstract voidpopulateRemovedConnections(java.util.List<ConnectionModel> connList)Populates the removedConnectionModel.voidrevert()Reverts thisChange(after being applied).-
Methods inherited from class net.officefloor.model.impl.change.AbstractChange
canApply, getChangeDescription, getConflicts, getTarget, setConflicts
-
-
-
-
Constructor Detail
-
DisconnectChange
public DisconnectChange(T target)
Initiate.- Parameters:
target- Target to removeConnectionModelinstances.
-
-
Method Detail
-
populateRemovedConnections
protected abstract void populateRemovedConnections(java.util.List<ConnectionModel> connList)
Populates the removedConnectionModel.- Parameters:
connList- List to populate with the removedConnectionModelinstances.
-
-