Package org.eclipse.emf.common.notify
Class NotificationWrapper
java.lang.Object
org.eclipse.emf.common.notify.NotificationWrapper
- All Implemented Interfaces:
Notification
A notification that wraps another notification.
All the
Notification methods are delegated to the wrapped notification.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected NotificationThe notification that is being wrapped.protected ObjectAn optional override value for the notification's notifier.Fields inherited from interface org.eclipse.emf.common.notify.Notification
ADD, ADD_MANY, CREATE, EVENT_TYPE_COUNT, MOVE, NO_FEATURE_ID, NO_INDEX, REMOVE, REMOVE_MANY, REMOVING_ADAPTER, RESOLVE, SET, UNSET -
Constructor Summary
ConstructorsConstructorDescriptionNotificationWrapper(Object notifier, Notification notification) Create an instance with the specified notifier and notification.NotificationWrapper(Notification notification) Create an instance with the specified notification. -
Method Summary
Modifier and TypeMethodDescriptionintDelegates to the getEventType method of the notification.Delegates to the getFeature method of the notification.intgetFeatureID(Class<?> expectedClass) Delegates to the getFeatureID method of the notification.booleanDelegates to the getNewBooleanValue method of the notification.byteDelegates to the getNewByteValue method of the notification.charDelegates to the getNewCharValue method of the notification.doubleDelegates to the getNewDoubleValue method of the notification.floatDelegates to the getNewFloatValue method of the notification.intDelegates to the getNewIntValue method of the notification.longDelegates to the getNewLongValue method of the notification.shortDelegates to the getNewShortValue method of the notification.Delegates to the getNewStringValue method of the notification.Delegates to the getNewValue method of the notification.Returns the local notifier if set; otherwise delegates to the getNotifier method of the notification.booleanDelegates to the getOldBooleanValue method of the notification.byteDelegates to the getOldByteValue method of the notification.charDelegates to the getOldCharValue method of the notification.doubleDelegates to the getOldDoubleValue method of the notification.floatDelegates to the getOldFloatValue method of the notification.intDelegates to the getOldIntValue method of the notification.longDelegates to the getOldLongValue method of the notification.shortDelegates to the getOldShortValue method of the notification.Delegates to the getOldStringValue method of the notification.Delegates to the getOldValue method of the notification.intDelegates to the getPosition method of the notification.booleanisReset()Delegates to the isReset method of the notification.booleanisTouch()Delegates to the isTouch method of the notification.booleanmerge(Notification notification) Delegates to the merge method of the notification.booleanwasSet()Delegates to the wasSet method of the notification.
-
Field Details
-
notification
The notification that is being wrapped. -
notifier
An optional override value for the notification's notifier.
-
-
Constructor Details
-
NotificationWrapper
Create an instance with the specified notification. -
NotificationWrapper
Create an instance with the specified notifier and notification.
-
-
Method Details
-
getNotifier
Returns the local notifier if set; otherwise delegates to the getNotifier method of the notification.- Specified by:
getNotifierin interfaceNotification- Returns:
- the notifier.
-
getEventType
public int getEventType()Delegates to the getEventType method of the notification.- Specified by:
getEventTypein interfaceNotification- Returns:
- the eventType.
- See Also:
-
getFeatureID
Delegates to the getFeatureID method of the notification.- Specified by:
getFeatureIDin interfaceNotification- Parameters:
expectedClass- the class to which the ID is relative.- Returns:
- the featureID.
- See Also:
-
getFeature
Delegates to the getFeature method of the notification.- Specified by:
getFeaturein interfaceNotification- Returns:
- the feature.
-
getOldValue
Delegates to the getOldValue method of the notification.- Specified by:
getOldValuein interfaceNotification- Returns:
- the oldValue.
-
getNewValue
Delegates to the getNewValue method of the notification.- Specified by:
getNewValuein interfaceNotification- Returns:
- the newValue.
-
wasSet
public boolean wasSet()Delegates to the wasSet method of the notification.- Specified by:
wasSetin interfaceNotification- Returns:
- the wasSet result.
-
isTouch
public boolean isTouch()Delegates to the isTouch method of the notification.- Specified by:
isTouchin interfaceNotification- Returns:
- the isTouch result.
-
isReset
public boolean isReset()Delegates to the isReset method of the notification.- Specified by:
isResetin interfaceNotification- Returns:
- the isReset result.
-
getPosition
public int getPosition()Delegates to the getPosition method of the notification.- Specified by:
getPositionin interfaceNotification- Returns:
- the position.
-
merge
Delegates to the merge method of the notification.- Specified by:
mergein interfaceNotification- Returns:
- the merge result.
-
getOldBooleanValue
public boolean getOldBooleanValue()Delegates to the getOldBooleanValue method of the notification.- Specified by:
getOldBooleanValuein interfaceNotification- Returns:
- the oldBooleanValue.
-
getNewBooleanValue
public boolean getNewBooleanValue()Delegates to the getNewBooleanValue method of the notification.- Specified by:
getNewBooleanValuein interfaceNotification- Returns:
- the newBooleanValue.
-
getOldByteValue
public byte getOldByteValue()Delegates to the getOldByteValue method of the notification.- Specified by:
getOldByteValuein interfaceNotification- Returns:
- the oldByteValue.
-
getNewByteValue
public byte getNewByteValue()Delegates to the getNewByteValue method of the notification.- Specified by:
getNewByteValuein interfaceNotification- Returns:
- the newByteValue.
-
getOldCharValue
public char getOldCharValue()Delegates to the getOldCharValue method of the notification.- Specified by:
getOldCharValuein interfaceNotification- Returns:
- the oldCharValue.
-
getNewCharValue
public char getNewCharValue()Delegates to the getNewCharValue method of the notification.- Specified by:
getNewCharValuein interfaceNotification- Returns:
- the newCharValue.
-
getOldDoubleValue
public double getOldDoubleValue()Delegates to the getOldDoubleValue method of the notification.- Specified by:
getOldDoubleValuein interfaceNotification- Returns:
- the oldDoubleValue.
-
getNewDoubleValue
public double getNewDoubleValue()Delegates to the getNewDoubleValue method of the notification.- Specified by:
getNewDoubleValuein interfaceNotification- Returns:
- the newDoubleValue.
-
getOldFloatValue
public float getOldFloatValue()Delegates to the getOldFloatValue method of the notification.- Specified by:
getOldFloatValuein interfaceNotification- Returns:
- the oldFloatValue.
-
getNewFloatValue
public float getNewFloatValue()Delegates to the getNewFloatValue method of the notification.- Specified by:
getNewFloatValuein interfaceNotification- Returns:
- the newFloatValue.
-
getOldIntValue
public int getOldIntValue()Delegates to the getOldIntValue method of the notification.- Specified by:
getOldIntValuein interfaceNotification- Returns:
- the oldIntValue.
-
getNewIntValue
public int getNewIntValue()Delegates to the getNewIntValue method of the notification.- Specified by:
getNewIntValuein interfaceNotification- Returns:
- the newIntValue.
-
getOldLongValue
public long getOldLongValue()Delegates to the getOldLongValue method of the notification.- Specified by:
getOldLongValuein interfaceNotification- Returns:
- the oldLongValue.
-
getNewLongValue
public long getNewLongValue()Delegates to the getNewLongValue method of the notification.- Specified by:
getNewLongValuein interfaceNotification- Returns:
- the newLongValue.
-
getOldShortValue
public short getOldShortValue()Delegates to the getOldShortValue method of the notification.- Specified by:
getOldShortValuein interfaceNotification- Returns:
- the oldShortValue.
-
getNewShortValue
public short getNewShortValue()Delegates to the getNewShortValue method of the notification.- Specified by:
getNewShortValuein interfaceNotification- Returns:
- the newShortValue.
-
getOldStringValue
Delegates to the getOldStringValue method of the notification.- Specified by:
getOldStringValuein interfaceNotification- Returns:
- the oldStringValue.
-
getNewStringValue
Delegates to the getNewStringValue method of the notification.- Specified by:
getNewStringValuein interfaceNotification- Returns:
- the newStringValue.
-