Class NotificationWrapper

java.lang.Object
org.eclipse.emf.common.notify.NotificationWrapper
All Implemented Interfaces:
Notification

public class NotificationWrapper extends Object implements Notification
A notification that wraps another notification. All the Notification methods are delegated to the wrapped notification.
  • Field Details

    • notification

      protected Notification notification
      The notification that is being wrapped.
    • notifier

      protected Object notifier
      An optional override value for the notification's notifier.
  • Constructor Details

    • NotificationWrapper

      public NotificationWrapper(Notification notification)
      Create an instance with the specified notification.
    • NotificationWrapper

      public NotificationWrapper(Object notifier, Notification notification)
      Create an instance with the specified notifier and notification.
  • Method Details

    • getNotifier

      public Object getNotifier()
      Returns the local notifier if set; otherwise delegates to the getNotifier method of the notification.
      Specified by:
      getNotifier in interface Notification
      Returns:
      the notifier.
    • getEventType

      public int getEventType()
      Delegates to the getEventType method of the notification.
      Specified by:
      getEventType in interface Notification
      Returns:
      the eventType.
      See Also:
    • getFeatureID

      public int getFeatureID(Class<?> expectedClass)
      Delegates to the getFeatureID method of the notification.
      Specified by:
      getFeatureID in interface Notification
      Parameters:
      expectedClass - the class to which the ID is relative.
      Returns:
      the featureID.
      See Also:
    • getFeature

      public Object getFeature()
      Delegates to the getFeature method of the notification.
      Specified by:
      getFeature in interface Notification
      Returns:
      the feature.
    • getOldValue

      public Object getOldValue()
      Delegates to the getOldValue method of the notification.
      Specified by:
      getOldValue in interface Notification
      Returns:
      the oldValue.
    • getNewValue

      public Object getNewValue()
      Delegates to the getNewValue method of the notification.
      Specified by:
      getNewValue in interface Notification
      Returns:
      the newValue.
    • wasSet

      public boolean wasSet()
      Delegates to the wasSet method of the notification.
      Specified by:
      wasSet in interface Notification
      Returns:
      the wasSet result.
    • isTouch

      public boolean isTouch()
      Delegates to the isTouch method of the notification.
      Specified by:
      isTouch in interface Notification
      Returns:
      the isTouch result.
    • isReset

      public boolean isReset()
      Delegates to the isReset method of the notification.
      Specified by:
      isReset in interface Notification
      Returns:
      the isReset result.
    • getPosition

      public int getPosition()
      Delegates to the getPosition method of the notification.
      Specified by:
      getPosition in interface Notification
      Returns:
      the position.
    • merge

      public boolean merge(Notification notification)
      Delegates to the merge method of the notification.
      Specified by:
      merge in interface Notification
      Returns:
      the merge result.
    • getOldBooleanValue

      public boolean getOldBooleanValue()
      Delegates to the getOldBooleanValue method of the notification.
      Specified by:
      getOldBooleanValue in interface Notification
      Returns:
      the oldBooleanValue.
    • getNewBooleanValue

      public boolean getNewBooleanValue()
      Delegates to the getNewBooleanValue method of the notification.
      Specified by:
      getNewBooleanValue in interface Notification
      Returns:
      the newBooleanValue.
    • getOldByteValue

      public byte getOldByteValue()
      Delegates to the getOldByteValue method of the notification.
      Specified by:
      getOldByteValue in interface Notification
      Returns:
      the oldByteValue.
    • getNewByteValue

      public byte getNewByteValue()
      Delegates to the getNewByteValue method of the notification.
      Specified by:
      getNewByteValue in interface Notification
      Returns:
      the newByteValue.
    • getOldCharValue

      public char getOldCharValue()
      Delegates to the getOldCharValue method of the notification.
      Specified by:
      getOldCharValue in interface Notification
      Returns:
      the oldCharValue.
    • getNewCharValue

      public char getNewCharValue()
      Delegates to the getNewCharValue method of the notification.
      Specified by:
      getNewCharValue in interface Notification
      Returns:
      the newCharValue.
    • getOldDoubleValue

      public double getOldDoubleValue()
      Delegates to the getOldDoubleValue method of the notification.
      Specified by:
      getOldDoubleValue in interface Notification
      Returns:
      the oldDoubleValue.
    • getNewDoubleValue

      public double getNewDoubleValue()
      Delegates to the getNewDoubleValue method of the notification.
      Specified by:
      getNewDoubleValue in interface Notification
      Returns:
      the newDoubleValue.
    • getOldFloatValue

      public float getOldFloatValue()
      Delegates to the getOldFloatValue method of the notification.
      Specified by:
      getOldFloatValue in interface Notification
      Returns:
      the oldFloatValue.
    • getNewFloatValue

      public float getNewFloatValue()
      Delegates to the getNewFloatValue method of the notification.
      Specified by:
      getNewFloatValue in interface Notification
      Returns:
      the newFloatValue.
    • getOldIntValue

      public int getOldIntValue()
      Delegates to the getOldIntValue method of the notification.
      Specified by:
      getOldIntValue in interface Notification
      Returns:
      the oldIntValue.
    • getNewIntValue

      public int getNewIntValue()
      Delegates to the getNewIntValue method of the notification.
      Specified by:
      getNewIntValue in interface Notification
      Returns:
      the newIntValue.
    • getOldLongValue

      public long getOldLongValue()
      Delegates to the getOldLongValue method of the notification.
      Specified by:
      getOldLongValue in interface Notification
      Returns:
      the oldLongValue.
    • getNewLongValue

      public long getNewLongValue()
      Delegates to the getNewLongValue method of the notification.
      Specified by:
      getNewLongValue in interface Notification
      Returns:
      the newLongValue.
    • getOldShortValue

      public short getOldShortValue()
      Delegates to the getOldShortValue method of the notification.
      Specified by:
      getOldShortValue in interface Notification
      Returns:
      the oldShortValue.
    • getNewShortValue

      public short getNewShortValue()
      Delegates to the getNewShortValue method of the notification.
      Specified by:
      getNewShortValue in interface Notification
      Returns:
      the newShortValue.
    • getOldStringValue

      public String getOldStringValue()
      Delegates to the getOldStringValue method of the notification.
      Specified by:
      getOldStringValue in interface Notification
      Returns:
      the oldStringValue.
    • getNewStringValue

      public String getNewStringValue()
      Delegates to the getNewStringValue method of the notification.
      Specified by:
      getNewStringValue in interface Notification
      Returns:
      the newStringValue.