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.EPropertiesHolderImpl
org.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, type
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
RESOLUTION_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, unresolve
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
eAddVirtualValue, 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, eVirtualValues
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addComposite, 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, unresolve
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
public 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 DeltaImpl
public boolean isOldSet()
isOldSet
in interface ChangeDelta
ChangeDelta.setOldSet(boolean)
,
DeltaPackage.getChangeDelta_OldSet()
public void setOldSet(boolean newOldSet)
setOldSet
in interface ChangeDelta
newOldSet
- the new value of the 'Old Set' attribute.ChangeDelta.isOldSet()
public boolean isNewSet()
isNewSet
in interface ChangeDelta
ChangeDelta.setNewSet(boolean)
,
DeltaPackage.getChangeDelta_NewSet()
public void setNewSet(boolean newNewSet)
setNewSet
in interface ChangeDelta
newNewSet
- the new value of the 'New Set' attribute.ChangeDelta.isNewSet()
public org.eclipse.emf.common.util.EList getListDeltas()
getListDeltas
in interface ChangeDelta
DeltaPackage.getChangeDelta_ListDeltas()
public boolean getSetChanged()
getSetChanged
in interface ChangeDelta
public 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 DeltaImpl
public 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()
ChangeDelta
getChangeLocation
in interface ChangeDelta
public Location getSourceLocation()
Delta
getSourceLocation
in interface Delta
getSourceLocation
in class DeltaImpl
public Location getDestinationLocation()
Delta
getDestinationLocation
in interface Delta
getDestinationLocation
in class DeltaImpl
public java.lang.Object getOldValue()
ChangeDelta
getOldValue
in interface ChangeDelta
public java.lang.Object getChangedObject()
ChangeDelta
getChangedObject
in interface ChangeDelta
public java.lang.String getChangedObjectMatchingId()
ChangeDelta
getChangedObjectMatchingId
in interface ChangeDelta
public java.lang.Object getAffectedObject()
Delta
getAffectedObject
in interface Delta
getAffectedObject
in class DeltaImpl
public java.lang.String getAffectedObjectMatchingId()
Delta
getAffectedObjectMatchingId
in interface Delta
getAffectedObjectMatchingId
in class DeltaImpl
public java.lang.Object getNewValue()
ChangeDelta
getNewValue
in interface ChangeDelta
public java.lang.Object getNewValueBeforeIncrement()
getNewValueBeforeIncrement
in interface ChangeDelta
public java.lang.String getId()
Delta
public void toStringImpl(java.lang.StringBuilder sb)
Delta
toStringImpl
in interface Delta
toStringImpl
in class DeltaImpl
sb
- the string buffer to append topublic boolean isSameDelta(Delta d)
Delta
isSameDelta
in interface Delta
public void print(java.io.PrintStream out)
Printable
protected void printContributor(java.io.PrintStream out)
public boolean getSourceNewSetState()
Delta
getSourceNewSetState
in interface Delta
getSourceNewSetState
in class DeltaImpl
public boolean getSourceOldSetState()
Delta
getSourceOldSetState
in interface Delta
getSourceOldSetState
in class DeltaImpl
public boolean isSourceSetStateChanged()
Delta
isSourceSetStateChanged
in interface Delta
isSourceSetStateChanged
in class DeltaImpl
public java.lang.Object override(java.lang.Object value)
override
in interface ChangeDelta
value
- public java.lang.Object decrement()
decrement
in interface ChangeDelta
public void increment(java.lang.Object value)
increment
in interface ChangeDelta
value
- -
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 ChangeDelta
public java.util.List getInternalDeltaValues()