|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
org.eclipse.emf.ecore.change.impl.ChangeDescriptionImpl
org.eclipse.emf.transaction.util.CompositeChangeDescription
A composition of zero or more change descriptions representing the
changes performed by transactions in a possibly nested structure. In the
execution of a transaction, the changes that it makes in between nested
transactions and the changes made by those nested transactions are stored as
discrete ChangeDescription
s in a composite. The composite structure
is recursive.
Nested Class Summary |
Nested classes inherited from class org.eclipse.emf.ecore.change.impl.ChangeDescriptionImpl |
org.eclipse.emf.ecore.change.impl.ChangeDescriptionImpl.OldContainmentInformation |
Nested classes inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl |
Nested classes inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList |
Nested classes inherited from class org.eclipse.emf.ecore.InternalEObject |
org.eclipse.emf.ecore.InternalEObject.EStore |
Field Summary |
Fields inherited from class org.eclipse.emf.ecore.change.impl.ChangeDescriptionImpl |
objectChanges, objectsToAttach, objectsToDetach, oldContainmentInformation, resourceChanges |
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY |
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET |
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject |
EOPPOSITE_FEATURE_BASE |
Constructor Summary | |
CompositeChangeDescription()
|
Method Summary | |
void |
add(org.eclipse.emf.ecore.change.ChangeDescription change)
Adds a change description to me. |
void |
apply()
|
void |
applyAndReverse()
|
boolean |
canApply()
I can apply myself if all of my composed changes can apply themselves. |
void |
clear()
Removes any change descriptions that I may have. |
org.eclipse.emf.common.util.EMap |
getObjectChanges()
My object changes are the concatenation of the changes in my composed descriptions. |
org.eclipse.emf.common.util.EList |
getObjectsToAttach()
My objects to detach are the concatenation of the changes in my composed descriptions. |
org.eclipse.emf.common.util.EList |
getObjectsToDetach()
My objects to attach are the concatenation of the changes in my composed descriptions. |
org.eclipse.emf.common.util.EList |
getResourceChanges()
My resource changes are the concatenation of the changes in my composed descriptions. |
boolean |
isEmpty()
Queries whether I have no composed change descriptions. |
String |
toString()
|
Methods inherited from class org.eclipse.emf.ecore.change.impl.ChangeDescriptionImpl |
eGet, eInverseRemove, eIsSet, eSet, eStaticClass, eUnset, getContainedEObjects, getObjectsToDetachGen, getOldContainer, getOldContainmentFeature, getOldContainmentInformation, preApply |
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI |
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues |
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
eNotificationRequired, eNotify |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
eAdapters, eDeliver, eNotify, eSetDeliver |
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject |
eNotificationRequired |
Constructor Detail |
public CompositeChangeDescription()
Method Detail |
public final boolean isEmpty()
isEmpty
in interface TransactionChangeDescription
false
if I have any change descriptions;
true
, otherwisepublic final void clear()
public boolean canApply()
canApply
in interface TransactionChangeDescription
true
if my changes can be applied;
false
otherwise (i.e., they are not invertible)public void apply()
apply
in interface org.eclipse.emf.ecore.change.ChangeDescription
public void applyAndReverse()
applyAndReverse
in interface org.eclipse.emf.ecore.change.ChangeDescription
public void add(org.eclipse.emf.ecore.change.ChangeDescription change)
change
- a new change description to addpublic org.eclipse.emf.common.util.EMap getObjectChanges()
getObjectChanges
in interface org.eclipse.emf.ecore.change.ChangeDescription
public org.eclipse.emf.common.util.EList getObjectsToDetach()
getObjectsToDetach
in interface org.eclipse.emf.ecore.change.ChangeDescription
public org.eclipse.emf.common.util.EList getObjectsToAttach()
getObjectsToAttach
in interface org.eclipse.emf.ecore.change.ChangeDescription
public org.eclipse.emf.common.util.EList getResourceChanges()
getResourceChanges
in interface org.eclipse.emf.ecore.change.ChangeDescription
public String toString()
|
Copyright 2002, 2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |