public abstract class AbstractDataflowOutputPortEdit extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
applied |
Modifier | Constructor and Description |
---|---|
protected |
AbstractDataflowOutputPortEdit(DataflowOutputPort dataflowOutputPort) |
Modifier and Type | Method and Description |
---|---|
DataflowOutputPort |
applyEdit() |
protected void |
applyUndo() |
T |
doEdit()
Perform the edit
|
protected abstract void |
doEditAction(org.apache.taverna.workflowmodel.impl.DataflowOutputPortImpl dataflowOutputPort)
Do the actual edit here
|
DataflowOutputPort |
getSubject()
Return the object to which this edit applies
|
boolean |
isApplied()
Has the edit been applied yet?
|
void |
undo()
Undo the edit, reverting the subject to the state it was in prior to the
edit
|
protected AbstractDataflowOutputPortEdit(DataflowOutputPort dataflowOutputPort)
public final DataflowOutputPort applyEdit() throws EditException
EditException
protected abstract void doEditAction(org.apache.taverna.workflowmodel.impl.DataflowOutputPortImpl dataflowOutputPort) throws EditException
dataflowOutputPort
- The DataflowOutputPortImpl to which the edit appliesEditException
public final DataflowOutputPort getSubject()
Edit
public final T doEdit() throws EditException
doEdit
in interface Edit<T>
EditException
- if the edit fails. If an edit throws EditException it should
try to ensure the subject is unaltered. Where this is
impossible consider breaking edits down into a compound edit.public final boolean isApplied()
public final void undo()
protected void applyUndo()
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.