|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Revisable
represents an object allowing revisions of itself
| Method Summary | |
|---|---|
void |
addListener(RevisionListener listener)
|
Revision |
getLastRevision()
provides access to the last revision that was applied to this instance |
Enumeration<Revision> |
getRevisions(Filter<? super Revision> filter)
optionally allows to access revisions that were performed on this instance |
Status |
getStatus()
reflects the current status of this instance |
void |
removeListener(RevisionListener listener)
|
void |
revise(Object source,
Object changes,
Status newStatus,
String comment)
adds a revision to the history and changes the current status accordingly; the revision's old status must match this Revisable's current status. |
| Method Detail |
|---|
void addListener(RevisionListener listener)
void removeListener(RevisionListener listener)
Status getStatus()
void revise(Object source,
Object changes,
Status newStatus,
String comment)
throws RevisionException,
IOException
RevisionException - if this Revisable doesn't accept the given revision
IOException - if the any resources could not be access to perform the revisionRevision getLastRevision()
Enumeration<Revision> getRevisions(Filter<? super Revision> filter)
throws IOException,
UnsupportedOperationException
IOException
UnsupportedOperationException
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||