Modifier and Type | Field and Description |
---|---|
protected boolean |
applied |
Modifier | Constructor and Description |
---|---|
protected |
AbstractDataflowEdit(Dataflow dataflow) |
Modifier and Type | Method and Description |
---|---|
Dataflow |
applyEdit() |
protected void |
applyUndo() |
T |
doEdit()
Perform the edit
|
protected abstract void |
doEditAction(DataflowImpl dataflow)
Do the actual edit here
|
Dataflow |
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 AbstractDataflowEdit(Dataflow dataflow)
public final Dataflow applyEdit() throws EditException
EditException
protected abstract void doEditAction(DataflowImpl dataflow) throws EditException
dataflow
- The DataflowImpl to which the edit appliesEditException
public final Dataflow 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.