org.dvb.dsmcc
Class ObjectChangeEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.dvb.dsmcc.ObjectChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class ObjectChangeEvent
extends java.util.EventObject

This class describes an object change event that is used to monitor the arrival of a new version of a DSMCCObject. For files carried in a DSMCC object carousel, when a change in a module is detected, this event shall be sent to all registered listeners for all objects carried in that module.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ObjectChangeEvent(DSMCCObject source, int aVersionNumber)
          Creates an ObjectChangeEvent indicating that a new version of the monitored DSMCC Object has been detected.
 
Method Summary
 int getNewVersionNumber()
          This method is used to get the new version number of the monitored DSMCCObject.
 java.lang.Object getSource()
          Returns the DSMCCObject that has changed
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectChangeEvent

public ObjectChangeEvent(DSMCCObject source,
                         int aVersionNumber)
Creates an ObjectChangeEvent indicating that a new version of the monitored DSMCC Object has been detected. It is up to the application to reload the new version of the object.

Parameters:
source - the DSMCCObject whose version has changed
aVersionNumber - the new version number.
Method Detail

getNewVersionNumber

public int getNewVersionNumber()
This method is used to get the new version number of the monitored DSMCCObject. For files carried in a DSMCC object carousel, this method shall return the version number of the module carrying the file.

Returns:
the new version number.

getSource

public java.lang.Object getSource()
Returns the DSMCCObject that has changed

Returns:
the DSMCCObject that has changed