Holger's
Java API

com.antelmann.mgmt
Interface Revisable


public interface Revisable

Author:
Holger Antelmann

Method Summary
 void addListener(RevisionListener listener)
           
 List<RevisionEvent> getRevisionHistory()
          may not return all events ever registered, but only the relevant ones This is an optional feature
 Status getStatus()
           
 void removeListener(RevisionListener listener)
           
 void revise(RevisionEvent revision)
          adds a revision to the history and changes the current status accordingly
 

Method Detail

addListener

void addListener(RevisionListener listener)

removeListener

void removeListener(RevisionListener listener)

getStatus

Status getStatus()

revise

void revise(RevisionEvent revision)
            throws IllegalStateException
adds a revision to the history and changes the current status accordingly

Throws:
IllegalStateException - if this Revisable doesn't accept the given revision

getRevisionHistory

List<RevisionEvent> getRevisionHistory()
                                       throws UnsupportedOperationException
may not return all events ever registered, but only the relevant ones This is an optional feature

Throws:
UnsupportedOperationException


(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads