public class ChangeDeltaImpl extends DeltaImpl implements ChangeDelta
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 Location |
changeLocation |
protected java.util.LinkedList |
delta_values |
protected org.eclipse.emf.common.util.EList |
listDeltas
The cached value of the '
List Deltas' containment reference list. |
protected static boolean |
NEW_SET_EDEFAULT
The default value of the '
New Set' attribute. |
protected boolean |
newSet
The cached value of the '
New Set' attribute. |
static java.lang.String |
NEWVALUE_PROPERTY |
protected static boolean |
OLD_SET_EDEFAULT
The default value of the '
Old Set' attribute. |
protected boolean |
oldSet
The cached value of the '
Old Set' attribute. |
protected java.lang.Object |
oldValue |
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 |
ChangeDeltaImpl() |
|
ChangeDeltaImpl(org.eclipse.emf.ecore.resource.Resource base,
org.eclipse.emf.ecore.resource.Resource contributor,
Location changeLocation,
boolean oldSet,
boolean newSet,
java.lang.Object oldValue,
java.lang.Object newValue) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
decrement()
decrement delta - remove the last delta from the increments list
|
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType) |
org.eclipse.emf.common.notify.NotificationChain |
eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs) |
boolean |
eIsSet(int featureID) |
void |
eSet(int featureID,
java.lang.Object newValue) |
protected org.eclipse.emf.ecore.EClass |
eStaticClass() |
void |
eUnset(int featureID) |
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.lang.Object |
getChangedObject()
Returns the object that has been changed.
|
java.lang.String |
getChangedObjectMatchingId()
Returns the matching ID of the changed object.
|
Location |
getChangeLocation()
Returns the location of the changed value.
|
Location |
getDestinationLocation()
Returns the destination location of the delta.
|
java.lang.String |
getId()
Returns a unique ID for this delta.
|
java.util.List |
getInternalDeltaValues()
Returns delta_values list.
|
org.eclipse.emf.common.util.EList |
getListDeltas() |
java.lang.Object |
getNewValue()
Returns the new value.
|
java.lang.Object |
getNewValueBeforeIncrement() |
java.lang.Object |
getOldValue()
Returns the old value.
|
boolean |
getSetChanged() |
Location |
getSourceLocation()
Returns the source location of the delta.
|
boolean |
getSourceNewSetState()
Returns the new source set state.
|
boolean |
getSourceOldSetState()
Returns the old source set state.
|
void |
increment(java.lang.Object value) |
int |
increments() |
boolean |
isNewSet() |
boolean |
isOldSet() |
boolean |
isSameDelta(Delta d)
Returns whether or not resolving this delta has the same effect as
resolving the given delta.
|
boolean |
isSourceSetStateChanged()
Returns whether or not the source feature changed set state.
|
java.lang.Object |
override(java.lang.Object value)
Overrides previous value.
|
void |
print(java.io.PrintStream out)
Prints a text representation to a stream.
|
protected void |
printContributor(java.io.PrintStream out) |
void |
setNewSet(boolean newNewSet) |
void |
setOldSet(boolean newOldSet) |
java.lang.String |
toString() |
void |
toStringImpl(java.lang.StringBuilder sb)
Appends an String representation to the string buffer.
|
addComposite, addConflict, addDependent, addPrerequisite, addPropertyChangeListener, canAutoResolve, canResolve, canUnresolve, collectAtomicDeltaSet, collectResolutionSet, deleteConflict, deleteDependent, deletePrerequisite, eInverseAdd, getAdapter, getAppliedResolution, getAtomicComposites, getAtomicDeltaSet, getAtomicDeltaSet, getBase, getComposites, getConflicts, getContributor, getCustomProperty, getDependents, getDependentsRecursively, getDestinationNewSetState, getDestinationOldSetState, getEquivalentDelta, getPrerequisites, getPrerequisitesRecursively, getRequiredDeltasRecursively, getResolution, getResolutionSet, getType, hasUnresolvedConflicts, isAccepted, isConflicting, isDestinationSetStateChanged, isInComposite, isInConflictedAtomicContainer, isRejected, isResolved, isSystemDelta, removePropertyChangeListener, resolve, setAppliedResolution, setCustomProperty, setEquivalentDelta, setSystemDelta, unresolveeAdapters, 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, addPropertyChangeListener, canAutoResolve, canResolve, canUnresolve, collectAtomicDeltaSet, collectResolutionSet, deleteConflict, deleteDependent, deletePrerequisite, getAppliedResolution, getAtomicComposites, getAtomicDeltaSet, getBase, getComposites, getConflicts, getContributor, getCustomProperty, getDependents, getDependentsRecursively, getDestinationNewSetState, getDestinationOldSetState, getEquivalentDelta, getPrerequisites, getPrerequisitesRecursively, getResolution, getResolutionSet, getType, hasUnresolvedConflicts, isAccepted, isConflicting, isDestinationSetStateChanged, isInConflictedAtomicContainer, isRejected, isResolved, isSystemDelta, removePropertyChangeListener, resolve, setAppliedResolution, setCustomProperty, setEquivalentDelta, setSystemDelta, unresolveeAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetpublic static java.lang.String NEWVALUE_PROPERTY
protected static final boolean OLD_SET_EDEFAULT
Old Set' attribute.
isOldSet(),
Constant Field Valuesprotected boolean oldSet
Old Set' attribute.
isOldSet()protected static final boolean NEW_SET_EDEFAULT
New Set' attribute.
isNewSet(),
Constant Field Valuesprotected boolean newSet
New Set' attribute.
isNewSet()protected org.eclipse.emf.common.util.EList listDeltas
List Deltas' containment reference list.
getListDeltas()protected Location changeLocation
protected java.lang.Object oldValue
protected java.util.LinkedList delta_values
protected ChangeDeltaImpl()
public ChangeDeltaImpl(org.eclipse.emf.ecore.resource.Resource base,
org.eclipse.emf.ecore.resource.Resource contributor,
Location changeLocation,
boolean oldSet,
boolean newSet,
java.lang.Object oldValue,
java.lang.Object newValue)
protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass in class DeltaImplpublic boolean isOldSet()
isOldSet in interface ChangeDeltaChangeDelta.setOldSet(boolean),
DeltaPackage.getChangeDelta_OldSet()public void setOldSet(boolean newOldSet)
setOldSet in interface ChangeDeltanewOldSet - the new value of the 'Old Set' attribute.ChangeDelta.isOldSet()public boolean isNewSet()
isNewSet in interface ChangeDeltaChangeDelta.setNewSet(boolean),
DeltaPackage.getChangeDelta_NewSet()public void setNewSet(boolean newNewSet)
setNewSet in interface ChangeDeltanewNewSet - the new value of the 'New Set' attribute.ChangeDelta.isNewSet()public org.eclipse.emf.common.util.EList getListDeltas()
getListDeltas in interface ChangeDeltaDeltaPackage.getChangeDelta_ListDeltas()public boolean getSetChanged()
getSetChanged in interface ChangeDeltapublic org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs)
eInverseRemove in class DeltaImplpublic java.lang.Object eGet(int featureID,
boolean resolve,
boolean coreType)
public void eSet(int featureID,
java.lang.Object newValue)
public void eUnset(int featureID)
public boolean eIsSet(int featureID)
public Location getChangeLocation()
ChangeDeltagetChangeLocation in interface ChangeDeltapublic Location getSourceLocation()
DeltagetSourceLocation in interface DeltagetSourceLocation in class DeltaImplpublic Location getDestinationLocation()
DeltagetDestinationLocation in interface DeltagetDestinationLocation in class DeltaImplpublic java.lang.Object getOldValue()
ChangeDeltagetOldValue in interface ChangeDeltapublic java.lang.Object getChangedObject()
ChangeDeltagetChangedObject in interface ChangeDeltapublic java.lang.String getChangedObjectMatchingId()
ChangeDeltagetChangedObjectMatchingId in interface ChangeDeltapublic java.lang.Object getAffectedObject()
DeltagetAffectedObject in interface DeltagetAffectedObject in class DeltaImplpublic java.lang.String getAffectedObjectMatchingId()
DeltagetAffectedObjectMatchingId in interface DeltagetAffectedObjectMatchingId in class DeltaImplpublic java.lang.Object getNewValue()
ChangeDeltagetNewValue in interface ChangeDeltapublic java.lang.Object getNewValueBeforeIncrement()
getNewValueBeforeIncrement in interface ChangeDeltapublic java.lang.String getId()
Deltapublic void toStringImpl(java.lang.StringBuilder sb)
DeltatoStringImpl in interface DeltatoStringImpl in class DeltaImplsb - the string buffer to append topublic boolean isSameDelta(Delta d)
DeltaisSameDelta in interface Deltapublic void print(java.io.PrintStream out)
Printableprotected void printContributor(java.io.PrintStream out)
public boolean getSourceNewSetState()
DeltagetSourceNewSetState in interface DeltagetSourceNewSetState in class DeltaImplpublic boolean getSourceOldSetState()
DeltagetSourceOldSetState in interface DeltagetSourceOldSetState in class DeltaImplpublic boolean isSourceSetStateChanged()
DeltaisSourceSetStateChanged in interface DeltaisSourceSetStateChanged in class DeltaImplpublic java.lang.Object override(java.lang.Object value)
override in interface ChangeDeltavalue - public java.lang.Object decrement()
decrement in interface ChangeDeltapublic void increment(java.lang.Object value)
increment in interface ChangeDeltavalue - -
add delta increment. Typically a result of merge subsession
resulting in delta increment. Change increments chained one
after another in a unidirectional linked list starting with
original delta - change between a contributor and a base, and
followed by delta increments after every subsessionpublic int increments()
increments in interface ChangeDeltapublic java.util.List getInternalDeltaValues()