public interface Edit<TargetType>
Modifier and Type | Method and Description |
---|---|
TargetType |
doEdit()
Perform the edit
|
Object |
getSubject()
Return the object to which this edit applies
|
boolean |
isApplied()
Has the edit been applied yet?
|
void |
undo()
Deprecated.
|
TargetType doEdit() throws EditException
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.@Deprecated void undo()
Object getSubject()
boolean isApplied()
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.