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.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 Delta |
autoResolveTarget |
protected java.util.List |
deltas |
protected ConflictType |
type |
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXYEVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSETRESOLVED_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, 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, eVirtualValues, toStringeBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waiteAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetprotected 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.EObjectImplprotected void calculateAutoResolveTarget()
public boolean isAutoResolveTarget(Delta target)
ConflictisAutoResolveTarget in interface Conflicttarget - a conflicting deltapublic ConflictType getType()
Conflictpublic java.util.List getDeltas()
Conflictpublic 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.BasicEObjectImplpublic 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.BasicEObjectImplpublic java.lang.Object eGet(int featureID,
boolean resolve,
boolean coreType)
eGet in interface org.eclipse.emf.ecore.InternalEObjecteGet in class org.eclipse.emf.ecore.impl.BasicEObjectImplpublic void eSet(int featureID,
java.lang.Object newValue)
eSet in interface org.eclipse.emf.ecore.InternalEObjecteSet in class org.eclipse.emf.ecore.impl.BasicEObjectImplpublic void eUnset(int featureID)
eUnset in interface org.eclipse.emf.ecore.InternalEObjecteUnset in class org.eclipse.emf.ecore.impl.BasicEObjectImplpublic boolean eIsSet(int featureID)
eIsSet in interface org.eclipse.emf.ecore.InternalEObjecteIsSet in class org.eclipse.emf.ecore.impl.BasicEObjectImplpublic java.util.List getContainedConflicts()
ConflictgetContainedConflicts in interface Conflictpublic void addDelta(Delta delta)
Conflictpublic boolean isResolved()
ConflictisResolved in interface Conflictpublic void customResolve(Delta delta)
ConflictcustomResolve in interface Conflictdelta - a deltapublic Delta getCustomResolveDelta()
ConflictgetCustomResolveDelta in interface Conflictpublic boolean isCustomResolved()
ConflictisCustomResolved in interface Conflictpublic boolean isAutomaticallyResolvable()
ConflictisAutomaticallyResolvable in interface Conflictpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
ConflictConflict.
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 Conflictlistener - a property change listenerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
ConflictremovePropertyChangeListener in interface Conflictlistener - a property change listenerpublic void propertyChange(java.beans.PropertyChangeEvent evt)
ConflictpropertyChange in interface ConflictpropertyChange in interface java.beans.PropertyChangeListenerpublic void print(java.io.PrintStream out)
Printablepublic boolean isEquivalent(Delta d1, Delta d2)
isEquivalent in interface Conflictpublic void setCustomProperty(java.lang.String property,
java.lang.Object value)
ConflictsetCustomProperty in interface Conflictpublic java.lang.Object getCustomProperty(java.lang.String property)
ConflictgetCustomProperty in interface Conflict