public class ConflictImpl extends org.eclipse.emf.ecore.impl.EObjectImpl implements Conflict
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 Delta |
autoResolveTarget |
protected java.util.List |
deltas |
protected ConflictType |
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
RESOLVED_PROPERTY
Modifier | Constructor and Description |
---|---|
protected |
ConflictImpl() |
|
ConflictImpl(ConflictType type) |
Modifier and Type | Method and Description |
---|---|
void |
addDelta(Delta delta)
Adds a delta.
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a property change listener that may be interested in
Conflict.RESOLVED_PROPERTY change events.
|
protected void |
calculateAutoResolveTarget() |
void |
customResolve(Delta delta)
Resolves this conflict with delta not known to the delta container.
|
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType) |
org.eclipse.emf.common.notify.NotificationChain |
eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs) |
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.util.List |
getContainedConflicts()
Returns a list of all conflicts involving deltas of this conflict.
|
java.lang.Object |
getCustomProperty(java.lang.String property)
Returns custom property
|
Delta |
getCustomResolveDelta()
Returns the custom resolve delta.
|
java.util.List |
getDeltas()
Returns a list of deltas involved in the conflict.
|
ConflictType |
getType()
Returns the type.
|
boolean |
isAutomaticallyResolvable()
Returns whether or not a conflict can be automatically resolved without
interventsion or losing any data.
|
boolean |
isAutoResolveTarget(Delta target)
Returns whether or not a delta is the automatically resolving delta for
this conflict.
|
boolean |
isCustomResolved()
Returns whether or not this conflict is resolved with a custom delta.
|
boolean |
isEquivalent(Delta d1,
Delta d2)
Test whether the two deltas are equivalent
if add/add n delete/delete deltas have same guid and target,
or if the change/change delta have same guid + same changes
|
boolean |
isResolved()
Returns whether or not this conflict is resolved.
|
void |
print(java.io.PrintStream out)
Prints a text representation to a stream.
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
Responds to a property change event.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a property change listener.
|
void |
setCustomProperty(java.lang.String property,
java.lang.Object value)
Set custom property
|
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, toString
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
protected ConflictType type
protected java.util.List deltas
protected Delta autoResolveTarget
protected ConflictImpl()
public ConflictImpl(ConflictType type)
protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass
in class org.eclipse.emf.ecore.impl.EObjectImpl
protected void calculateAutoResolveTarget()
public boolean isAutoResolveTarget(Delta target)
Conflict
isAutoResolveTarget
in interface Conflict
target
- a conflicting deltapublic ConflictType getType()
Conflict
public java.util.List getDeltas()
Conflict
public org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
eInverseAdd
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
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 org.eclipse.emf.ecore.impl.BasicEObjectImpl
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface org.eclipse.emf.ecore.InternalEObject
eGet
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface org.eclipse.emf.ecore.InternalEObject
eSet
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public void eUnset(int featureID)
eUnset
in interface org.eclipse.emf.ecore.InternalEObject
eUnset
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public boolean eIsSet(int featureID)
eIsSet
in interface org.eclipse.emf.ecore.InternalEObject
eIsSet
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public java.util.List getContainedConflicts()
Conflict
getContainedConflicts
in interface Conflict
public void addDelta(Delta delta)
Conflict
public boolean isResolved()
Conflict
isResolved
in interface Conflict
public void customResolve(Delta delta)
Conflict
customResolve
in interface Conflict
delta
- a deltapublic Delta getCustomResolveDelta()
Conflict
getCustomResolveDelta
in interface Conflict
public boolean isCustomResolved()
Conflict
isCustomResolved
in interface Conflict
public boolean isAutomaticallyResolvable()
Conflict
isAutomaticallyResolvable
in interface Conflict
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Conflict
Conflict
.
The event's old and new values are always null, but can be queried with
Conflict.isResolved
.
Note the possibility of hurting performance of the engine by adding
property change listeners before running a merge session.addPropertyChangeListener
in interface Conflict
listener
- a property change listenerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Conflict
removePropertyChangeListener
in interface Conflict
listener
- a property change listenerpublic void propertyChange(java.beans.PropertyChangeEvent evt)
Conflict
propertyChange
in interface Conflict
propertyChange
in interface java.beans.PropertyChangeListener
public void print(java.io.PrintStream out)
Printable
public boolean isEquivalent(Delta d1, Delta d2)
isEquivalent
in interface Conflict
public void setCustomProperty(java.lang.String property, java.lang.Object value)
Conflict
setCustomProperty
in interface Conflict
public java.lang.Object getCustomProperty(java.lang.String property)
Conflict
getCustomProperty
in interface Conflict