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>
Change
to simplify removingConnectionModel
instances.- 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 void
apply()
Applies thisChange
.protected abstract void
populateRemovedConnections(java.util.List<ConnectionModel> connList)
Populates the removedConnectionModel
.void
revert()
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 removeConnectionModel
instances.
-
-
Method Detail
-
populateRemovedConnections
protected abstract void populateRemovedConnections(java.util.List<ConnectionModel> connList)
Populates the removedConnectionModel
.- Parameters:
connList
- List to populate with the removedConnectionModel
instances.
-
-