public class NotificationBatch
extends java.util.ArrayList
| Constructor and Description |
|---|
NotificationBatch() |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.emf.common.notify.Notification |
findFirstAdd(java.lang.Class[] aClassArray)
Return the first ADD notification where the new value is an instance of the
specified class.
|
org.eclipse.emf.common.notify.Notification |
findLastRemove(java.lang.Class[] aClassArray)
Return the last REMOVE notification where the old value is an instance of the
specified class.
|
java.util.List |
getAllUniqueResources()
Accessor method for all Resources affected by this batch.
|
java.lang.Object |
getContainerForFeature(org.eclipse.emf.ecore.ENamedElement[] aENamedElementArray,
java.lang.Class aClassContainer)
Given an array of features, locate a notification that matches any of those features.
|
java.lang.Object |
getContainerForFeature(org.eclipse.emf.ecore.ENamedElement aENamedElement,
java.lang.Class aClassContainer)
Given a feature, locate the first notification that matches that feature.
|
java.lang.Object |
getContainerForNotifier(java.lang.Class[] aClassNotifierArray,
java.lang.Class aClassContainer)
Given an array of notifier classes, return the first container of that notifier
that matches the specified type.
|
java.lang.Object |
getContainerForNotifier(java.lang.Class aClassNotifier,
java.lang.Class aClassContainer)
Given a notifier class, return the first container of that notifier
that matches the specified type.
|
org.eclipse.emf.common.notify.Notification |
getNotificationForFeature(org.eclipse.emf.ecore.ENamedElement aENamedElement)
Given a feature, locate the first notification that matches that feature.
|
org.eclipse.emf.common.notify.Notification |
getNotificationForFeatureAndEvent(org.eclipse.emf.ecore.ENamedElement aENamedElement,
int eventType)
Given a feature and eventType, locate the first notification that matches that feature and event type.
|
org.eclipse.emf.common.notify.Notification |
getNotificationForNotifierAndFeature(java.lang.Object aObjectNotifier,
org.eclipse.emf.ecore.ENamedElement aENamedElement)
Given a feature and event type, locate the first matching notification.
|
org.eclipse.emf.common.notify.Notification |
getNotificationForNotifierFeatureEvent(java.lang.Object aObjectNotifier,
org.eclipse.emf.ecore.ENamedElement aENamedElement,
int aiEventType)
Given a notifier, feature and event type, locate the first matching notification.
|
java.util.List<org.eclipse.emf.common.notify.Notification> |
getNotificationsForEvent(int eventType)
Given a feature and eventType, locate the first notification that matches that feature and event type.
|
org.eclipse.emf.ecore.resource.Resource |
getResource()
Accessor method for last Resource affected by this batch.
|
boolean |
hasAdd(org.eclipse.emf.ecore.ENamedElement aENamedElementParent,
org.eclipse.emf.ecore.ENamedElement aENamedElementChild)
Return
true if the notification batch has an ADD event for the
specified parent and child (new value). |
boolean |
hasChildNotifiers(java.lang.Object aObjectParent,
java.lang.Class aClassChild)
Return
true if the notification batch has any instances
of a specified class that are children of a specified parent instance. |
boolean |
hasChildNotifiers(java.lang.Object aObjectParent,
java.lang.Class aClassChild,
boolean abIncludeParent)
Return
true if the notification batch has any instances
of a specified class that are children of a specified parent instance,
or optionally, exactly match the parent instance. |
boolean |
hasEventType(int aiEventType) |
boolean |
hasFeatures(java.lang.Object[] aObjectArray)
Return
true if the notification batch has any instances of the
specified features. |
boolean |
hasNewValues(java.lang.Class[] aClassArray)
Return
true if the notification batch has any instances
of the specified new value classes. |
boolean |
hasNotifiers(java.lang.Class[] aClassArray)
Return
true if the notification batch has any instances
of the specified notifiers. |
boolean |
hasNotifiers(java.lang.Object[] aObjectArray)
Return
true if the notification batch has any of the specific instances
as notifiers. |
boolean |
hasOldValues(java.lang.Class[] aClassArray)
Return
true if the notification batch has any instances
of the specified old value classes. |
boolean |
hasRemove(org.eclipse.emf.ecore.ENamedElement aENamedElementParent,
org.eclipse.emf.ecore.ENamedElement aENamedElementChild)
Return
true if the notification batch has a REMOVE event for the
specified parent and child (old value). |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSizepublic org.eclipse.emf.common.notify.Notification getNotificationForFeature(org.eclipse.emf.ecore.ENamedElement aENamedElement)
aENamedElement - Feature being updated.nullpublic org.eclipse.emf.common.notify.Notification getNotificationForFeatureAndEvent(org.eclipse.emf.ecore.ENamedElement aENamedElement,
int eventType)
aENamedElement - Feature being updated.eventType - type of event performednullpublic java.util.List<org.eclipse.emf.common.notify.Notification> getNotificationsForEvent(int eventType)
aENamedElement - Feature being updated.eventType - type of event performednullpublic org.eclipse.emf.common.notify.Notification getNotificationForNotifierAndFeature(java.lang.Object aObjectNotifier,
org.eclipse.emf.ecore.ENamedElement aENamedElement)
aObjectNotifier - Notifier object.aENamedElement - Feature being updated.null.public org.eclipse.emf.common.notify.Notification getNotificationForNotifierFeatureEvent(java.lang.Object aObjectNotifier,
org.eclipse.emf.ecore.ENamedElement aENamedElement,
int aiEventType)
aObjectNotifier - Notifier object.aENamedElement - Feature being updated.aiEventType - Type of event.null.public java.lang.Object getContainerForFeature(org.eclipse.emf.ecore.ENamedElement aENamedElement,
java.lang.Class aClassContainer)
aENamedElement - Feature being updated.aClassContainer - Container class.nullpublic java.lang.Object getContainerForFeature(org.eclipse.emf.ecore.ENamedElement[] aENamedElementArray,
java.lang.Class aClassContainer)
aENamedElementArray - Array of features.aClassContainer - Container class.nullpublic java.lang.Object getContainerForNotifier(java.lang.Class aClassNotifier,
java.lang.Class aClassContainer)
aClassNotifier - Class of notifier to test.aClassContainer - Container class.nullpublic java.lang.Object getContainerForNotifier(java.lang.Class[] aClassNotifierArray,
java.lang.Class aClassContainer)
aClassNotifierArray - Array of notifier classes.aClassContainer - Container class.nullpublic org.eclipse.emf.ecore.resource.Resource getResource()
null.public java.util.List getAllUniqueResources()
null.public boolean hasChildNotifiers(java.lang.Object aObjectParent,
java.lang.Class aClassChild)
true if the notification batch has any instances
of a specified class that are children of a specified parent instance.aObjectParent - Parent object instance.aClassChild - Child class.true if any instance of the child class are children of parent object.public boolean hasChildNotifiers(java.lang.Object aObjectParent,
java.lang.Class aClassChild,
boolean abIncludeParent)
true if the notification batch has any instances
of a specified class that are children of a specified parent instance,
or optionally, exactly match the parent instance.aObjectParent - Parent object instance.aClassChild - Child class.abIncludeParent - true to include parent in test.true if any instance of the child class are children of parent object.public boolean hasNewValues(java.lang.Class[] aClassArray)
true if the notification batch has any instances
of the specified new value classes.aClassArray - of classes to test.true if notification batch contains any of the specified new values.public boolean hasOldValues(java.lang.Class[] aClassArray)
true if the notification batch has any instances
of the specified old value classes.aClassArray - of classes to test.true if notification batch contains any of the specified old values.public boolean hasNotifiers(java.lang.Class[] aClassArray)
true if the notification batch has any instances
of the specified notifiers.aClassArray - of classes to test.true if notification batch contains any of the specified notifiers.public boolean hasFeatures(java.lang.Object[] aObjectArray)
true if the notification batch has any instances of the
specified features.aObjectArray - Array of features to test.true if notification batch contains any of the specified features.public boolean hasEventType(int aiEventType)
public boolean hasNotifiers(java.lang.Object[] aObjectArray)
true if the notification batch has any of the specific instances
as notifiers.aObjectArray - Array of objects to test.true if notification batch contains any of the specified notifiers.public org.eclipse.emf.common.notify.Notification findFirstAdd(java.lang.Class[] aClassArray)
aClassArray - of classes to test.true if notification batch contains any of the specified notifiers.public org.eclipse.emf.common.notify.Notification findLastRemove(java.lang.Class[] aClassArray)
Class[] - Array of classes to test.true if notification batch contains any of the specified notifiers.public boolean hasAdd(org.eclipse.emf.ecore.ENamedElement aENamedElementParent,
org.eclipse.emf.ecore.ENamedElement aENamedElementChild)
true if the notification batch has an ADD event for the
specified parent and child (new value).aENamedElementParent - Parent object.aENamedElementChild - Child object.public boolean hasRemove(org.eclipse.emf.ecore.ENamedElement aENamedElementParent,
org.eclipse.emf.ecore.ENamedElement aENamedElementChild)
true if the notification batch has a REMOVE event for the
specified parent and child (old value).aENamedElementParent - Parent object.aENamedElementChild - Child object.Copyright © 2005-2013 Progress Software Corporation and/or its subsidiaries and affiliates. All rights reserved.