org.dvb.dsmcc
Class ObjectChangeEvent
java.lang.Object
java.util.EventObject
org.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
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 |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 changedaVersionNumber
- the new version number.
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
- Overrides:
getSource
in class java.util.EventObject
- Returns:
- the DSMCCObject that has changed