tml.storage
Class RepositoryEvent

java.lang.Object
  extended by java.util.EventObject
      extended by tml.storage.RepositoryEvent
All Implemented Interfaces:
java.io.Serializable

public class RepositoryEvent
extends java.util.EventObject

This class represents an event that was fired by a Repository and indicates the current step of the running process and the maximum number of steps. It also includes a descriptive name of the operation being executed.

Author:
Jorge Villalon
See Also:
Serialized Form

Constructor Summary
RepositoryEvent(java.lang.Object source, java.lang.String action, int curr, int max)
           
 
Method Summary
 java.lang.String getAction()
           
 int getCurrent()
           
 int getMaximum()
           
 void setAction(java.lang.String action)
           
 void setCurrent(int current)
           
 void setMaximum(int maximum)
           
 java.lang.String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RepositoryEvent

public RepositoryEvent(java.lang.Object source,
                       java.lang.String action,
                       int curr,
                       int max)
Method Detail

getAction

public java.lang.String getAction()

setAction

public void setAction(java.lang.String action)

getCurrent

public int getCurrent()

setCurrent

public void setCurrent(int current)

getMaximum

public int getMaximum()

setMaximum

public void setMaximum(int maximum)

toString

public java.lang.String toString()
Overrides:
toString in class java.util.EventObject