public class NotificationHelper
extends java.lang.Object
Constructor and Description |
---|
NotificationHelper() |
Modifier and Type | Method and Description |
---|---|
static org.eclipse.emf.ecore.EStructuralFeature |
getNotificationFeature(org.eclipse.emf.common.notify.Notification n)
Get the
EStructuralFeature whose change caused the notification |
static boolean |
isAddEvent(org.eclipse.emf.common.notify.Notification event)
Checks whether the given event represent an add of a value to the model.
|
static boolean |
isAttributeValueChangeEvent(org.eclipse.emf.common.notify.Notification n)
Checks whether a
Notification was caused by an attribute value change. |
static boolean |
isElementLifeCycleEvent(org.eclipse.emf.common.notify.Notification n)
Checks whether a
Notification was caused by an element creation/deletion. |
static boolean |
isLinkLifeCycleEvent(org.eclipse.emf.common.notify.Notification n)
Checks whether a
Notification was caused by a reference change. |
static boolean |
isManyEvent(org.eclipse.emf.common.notify.Notification event)
Checks whether the given event contains is a Many Event
if true, one can handle the old/newValue objects as Lists
|
public static boolean isAttributeValueChangeEvent(org.eclipse.emf.common.notify.Notification n)
Notification
was caused by an attribute value change.n
- the Notification
to checkpublic static boolean isLinkLifeCycleEvent(org.eclipse.emf.common.notify.Notification n)
Notification
was caused by a reference change.n
- the Notification
to checkpublic static boolean isElementLifeCycleEvent(org.eclipse.emf.common.notify.Notification n)
Notification
was caused by an element creation/deletion.n
- the Notification
to checkpublic static org.eclipse.emf.ecore.EStructuralFeature getNotificationFeature(org.eclipse.emf.common.notify.Notification n)
EStructuralFeature
whose change caused the notificationn
- the Notification
to checkEStructuralFeature
whose change caused the notificationpublic static boolean isManyEvent(org.eclipse.emf.common.notify.Notification event)
event
- the Notification
to checkBoolean
true
if is a many notificationpublic static boolean isAddEvent(org.eclipse.emf.common.notify.Notification event)
event
- Notification
to checktrue
if there is an Notification.ADD
or Notification.ADD_MANY
or a Notification.SET
which set not to null