ObjectChangeEvent

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.dvb.dsmcc
Class ObjectChangeEvent

    java.lang.Object
      java.util.EventObject
          org.dvb.dsmcc.ObjectChangeEvent

All Implemented Interfaces:
  Serializable

    public class ObjectChangeEvent

extends 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`.
`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`

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 Object getSource()

  Returns the DSMCCObject that has changed

  Overrides:
    `getSource` in class `EventObject`
  Returns:
    the DSMCCObject that has changed

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD