public class CompositeDeltaImpl extends DeltaImpl implements CompositeDelta
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImplorg.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList| Modifier and Type | Field and Description |
|---|---|
protected java.util.List |
deltas |
appliedResolution, base, composites, conflicts, contributor, customProperties, dependents, prerequisites, propertyChangeSupport, systemDelta, typeeAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXYEVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSETRESOLUTION_PROPERTY| Modifier | Constructor and Description |
|---|---|
protected |
CompositeDeltaImpl() |
|
CompositeDeltaImpl(org.eclipse.emf.ecore.resource.Resource base,
org.eclipse.emf.ecore.resource.Resource contributor,
java.util.List deltas,
boolean isAtomic,
java.lang.String shortDescription,
java.lang.String longDescription) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addDelta(Delta delta) |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a listener that can register interest in a delta's
RESOLVED_PROPERTY. |
boolean |
canResolve(Resolution newResolution)
Returns whether or not this delta can be resolved with the new
resolution.
|
boolean |
canUnresolve()
Returns whether or not this delta can be unresolved.
|
void |
collectAtomicDeltaSet(Resolution resolution,
boolean includeRequiredDeltas,
java.util.Set atomicDeltaSet)
Collects all deltas, in the same contributor, required to resolve this
delta with the given resolution, with the option of including required
deltas or not.
|
protected org.eclipse.emf.ecore.EClass |
eStaticClass() |
java.lang.Object |
getAdapter(java.lang.Class adapter) |
java.lang.Object |
getAffectedObject()
Returns the object that has been affected.
|
java.lang.String |
getAffectedObjectMatchingId()
Returns the matching ID of the object that has been affected if the
feature of the location is a containment reference, otherwise null.
|
java.util.Set |
getAtomicDeltaSet(Resolution resolution,
boolean includeRequiredDeltas)
Returns a set of all deltas in the same contributor that must be
atomically resolved.
|
protected java.util.Set |
getAtomicDeltaSet(Resolution resolution,
boolean includeRequiredDeltas,
java.util.Set atomicDeltaSet)
Returns a set of all deltas in the same contributor that must be
atomically resolved.
|
java.util.List |
getDeltas()
Returns all the deltas that this delta composes.
|
Location |
getDestinationLocation()
Returns the destination location of the delta.
|
java.lang.String |
getId()
Returns a unique ID for this delta.
|
java.util.Set |
getLeafDeltas()
Returns all leaf deltas referenced by this composite.
|
java.lang.String |
getLongDescription()
Returns a long description.
|
Resolution |
getResolution()
Returns the current resolution of the delta.
|
java.lang.String |
getShortDescription()
Returns a short description.
|
Location |
getSourceLocation()
Returns the source location of the delta.
|
boolean |
isAccepted()
Returns whether or not this delta is accepted.
|
boolean |
isAtomic()
Returns whether or not all the composed deltas must be accepted or
rejected atomically.
|
boolean |
isLeafDeltaConflicting()
Returns whether or not a leaf delta is conflicting with another delta.
|
boolean |
isRejected()
Returns whether or not this delta is rejected.
|
boolean |
isResolved()
Returns whether or not this delta is resolved.
|
boolean |
isSameDelta(Delta d)
Returns whether or not resolving this delta has the same effect as
resolving the given delta.
|
void |
print(java.io.PrintStream out)
Prints a text representation to a stream.
|
void |
propertyChange(java.beans.PropertyChangeEvent event) |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a listener.
|
void |
resolve(Resolution newResolution)
Applies the new resolution with this delta.
|
void |
toStringImpl(java.lang.StringBuilder sb)
Appends an String representation to the string buffer.
|
void |
unresolve()
Unapplies the current resolution with this delta.
|
addComposite, addConflict, addDependent, addPrerequisite, canAutoResolve, collectResolutionSet, deleteConflict, deleteDependent, deletePrerequisite, eGet, eInverseAdd, eInverseRemove, eIsSet, eSet, eUnset, getAppliedResolution, getAtomicComposites, getBase, getComposites, getConflicts, getContributor, getCustomProperty, getDependents, getDependentsRecursively, getDestinationNewSetState, getDestinationOldSetState, getEquivalentDelta, getPrerequisites, getPrerequisitesRecursively, getRequiredDeltasRecursively, getResolutionSet, getSourceNewSetState, getSourceOldSetState, getType, hasUnresolvedConflicts, isConflicting, isDestinationSetStateChanged, isInComposite, isInConflictedAtomicContainer, isSourceSetStateChanged, isSystemDelta, setAppliedResolution, setCustomProperty, setEquivalentDelta, setSystemDelta, toStringeAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURIeAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValueseBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddComposite, addConflict, addDependent, addPrerequisite, canAutoResolve, collectResolutionSet, deleteConflict, deleteDependent, deletePrerequisite, getAppliedResolution, getAtomicComposites, getBase, getComposites, getConflicts, getContributor, getCustomProperty, getDependents, getDependentsRecursively, getDestinationNewSetState, getDestinationOldSetState, getEquivalentDelta, getPrerequisites, getPrerequisitesRecursively, getResolutionSet, getSourceNewSetState, getSourceOldSetState, getType, hasUnresolvedConflicts, isConflicting, isDestinationSetStateChanged, isInConflictedAtomicContainer, isSourceSetStateChanged, isSystemDelta, setAppliedResolution, setCustomProperty, setEquivalentDelta, setSystemDeltaeAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetprotected CompositeDeltaImpl()
public CompositeDeltaImpl(org.eclipse.emf.ecore.resource.Resource base,
org.eclipse.emf.ecore.resource.Resource contributor,
java.util.List deltas,
boolean isAtomic,
java.lang.String shortDescription,
java.lang.String longDescription)
protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass in class DeltaImplpublic boolean isLeafDeltaConflicting()
CompositeDeltaisLeafDeltaConflicting in interface CompositeDeltapublic boolean addDelta(Delta delta)
addDelta in interface CompositeDeltapublic Location getSourceLocation()
DeltagetSourceLocation in interface DeltagetSourceLocation in class DeltaImplpublic Location getDestinationLocation()
DeltagetDestinationLocation in interface DeltagetDestinationLocation in class DeltaImplpublic java.lang.Object getAffectedObject()
DeltagetAffectedObject in interface DeltagetAffectedObject in class DeltaImplpublic java.lang.String getAffectedObjectMatchingId()
DeltagetAffectedObjectMatchingId in interface DeltagetAffectedObjectMatchingId in class DeltaImplpublic boolean isResolved()
DeltaisResolved in interface DeltaisResolved in class DeltaImplpublic boolean isAccepted()
DeltaisAccepted in interface DeltaisAccepted in class DeltaImplpublic boolean isRejected()
DeltaisRejected in interface DeltaisRejected in class DeltaImplpublic Resolution getResolution()
DeltagetResolution in interface DeltagetResolution in class DeltaImplpublic void resolve(Resolution newResolution)
Deltapublic boolean canResolve(Resolution newResolution)
DeltacanResolve in interface DeltacanResolve in class DeltaImplnewResolution - the resolutionpublic boolean canUnresolve()
DeltacanUnresolve in interface DeltacanUnresolve in class DeltaImplpublic void unresolve()
Deltapublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
DeltaRESOLVED_PROPERTY.addPropertyChangeListener in interface DeltaaddPropertyChangeListener in class DeltaImpllistener - a property change listenerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
DeltaremovePropertyChangeListener in interface DeltaremovePropertyChangeListener in class DeltaImpllistener - a property change listenerpublic java.util.List getDeltas()
CompositeDeltagetDeltas in interface CompositeDeltapublic java.util.Set getLeafDeltas()
CompositeDeltagetLeafDeltas in interface CompositeDeltapublic boolean isAtomic()
CompositeDeltaisAtomic in interface CompositeDeltapublic void toStringImpl(java.lang.StringBuilder sb)
DeltatoStringImpl in interface DeltatoStringImpl in class DeltaImplsb - the string buffer to append topublic java.lang.String getId()
Deltapublic java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter in interface org.eclipse.core.runtime.IAdaptablegetAdapter in class DeltaImplpublic java.lang.String getLongDescription()
DescriptionProvidergetLongDescription in interface DescriptionProviderpublic java.lang.String getShortDescription()
DescriptionProvidergetShortDescription in interface DescriptionProviderpublic boolean isSameDelta(Delta d)
DeltaisSameDelta in interface Deltapublic java.util.Set getAtomicDeltaSet(Resolution resolution, boolean includeRequiredDeltas)
DeltaImplgetAtomicDeltaSet in interface DeltagetAtomicDeltaSet in class DeltaImplresolution - a resolutionincludeRequiredDeltas - if true, include required deltas, otherwise don'tprotected java.util.Set getAtomicDeltaSet(Resolution resolution, boolean includeRequiredDeltas, java.util.Set atomicDeltaSet)
DeltaImplgetAtomicDeltaSet in class DeltaImplpublic void collectAtomicDeltaSet(Resolution resolution, boolean includeRequiredDeltas, java.util.Set atomicDeltaSet)
DeltacollectAtomicDeltaSet in interface DeltacollectAtomicDeltaSet in class DeltaImplresolution - a resolutionincludeRequiredDeltas - if true, include required deltas, otherwise don'tatomicDeltaSet - set atomic delta setpublic void print(java.io.PrintStream out)
Printablepublic void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange in interface java.beans.PropertyChangeListener