|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Taggable
Something that can be tagged to memorize changes made after that point in
time. It's not defined what exactly is monitored and how. This depends on the
concrete implementation. This is like a kind of transaction but it has only a
"rollback" (revertToTag()) but no "commit" mode. It's named
Taggable to avoid confusion with database or other real transactions.
| Method Summary | |
|---|---|
boolean |
hasChangedSinceTagging()
Returns if the content of the object has changed since setting the tag. |
boolean |
isTagged()
Returns if the object is currently tagged. |
void |
revertToTag()
Reverts all changes made since setting the tag and clears internal state. |
void |
tag()
Start memorizing changes. |
void |
untag()
Stop memorizing changes and clear internal state. |
| Method Detail |
|---|
void tag()
void untag()
boolean isTagged()
true else false.void revertToTag()
boolean hasChangedSinceTagging()
true else
false.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||