|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ocl.examples.eventmanager.NotificationHelper
public class NotificationHelper
| Constructor Summary | |
|---|---|
NotificationHelper()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NotificationHelper()
| Method Detail |
|---|
public static boolean isAttributeValueChangeEvent(org.eclipse.emf.common.notify.Notification n)
Notification was caused by an attribute value change.
n - the Notification to check
public static boolean isLinkLifeCycleEvent(org.eclipse.emf.common.notify.Notification n)
Notification was caused by a reference change.
n - the Notification to check
public static boolean isElementLifeCycleEvent(org.eclipse.emf.common.notify.Notification n)
Notification was caused by an element creation/deletion.
n - the Notification to check
public static org.eclipse.emf.ecore.EStructuralFeature getNotificationFeature(org.eclipse.emf.common.notify.Notification n)
EStructuralFeature whose change caused the notification
n - the Notification to check
EStructuralFeature whose change caused the notificationpublic static boolean isManyEvent(org.eclipse.emf.common.notify.Notification event)
event - the Notification to check
Boolean true if is a many notificationpublic static boolean isAddEvent(org.eclipse.emf.common.notify.Notification event)
event - Notification to check
true if there is an Notification.ADD or Notification.ADD_MANY or a Notification.SET which set not to null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||