public abstract class ConflictStrategyImpl extends java.lang.Object implements ConflictStrategy
Constructor and Description |
---|
ConflictStrategyImpl() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
analyze(com.ibm.xtools.comparemerge.emf.delta.deltagenerator.matcher.Matcher matcher,
ConflictContainer conflictContainer,
DeltaContainer deltaContainer1,
DeltaContainer deltaContainer2) |
protected boolean |
canCreateChangeChangeConflict(ChangeDelta c1,
ChangeDelta c2) |
protected DeleteDelta |
checkIfDeleted(com.ibm.xtools.comparemerge.emf.delta.deltagenerator.matcher.Matcher matcher,
org.eclipse.emf.ecore.EObject object,
DeltaContainer otherDeltaContainer)
check if a specific element is deleted directly of indirectly
|
protected Conflict |
createConflict(ConflictContainer conflictContainer,
Delta delta1,
Delta delta2) |
static Delta |
getDeltaByLocationId(DeltaContainer deltaContainer,
DeltaType type,
java.lang.String locationId) |
static Delta |
getDeltaByObjectId(DeltaContainer deltaContainer,
DeltaType type,
java.lang.String objectId) |
protected Delta |
getNonSystemDelta(Delta delta)
Returns first non-system delta unrelated to DynamicEObject
sharing the same composite with given delta
|
public abstract boolean analyze(com.ibm.xtools.comparemerge.emf.delta.deltagenerator.matcher.Matcher matcher, ConflictContainer conflictContainer, DeltaContainer deltaContainer1, DeltaContainer deltaContainer2)
analyze
in interface ConflictStrategy
protected DeleteDelta checkIfDeleted(com.ibm.xtools.comparemerge.emf.delta.deltagenerator.matcher.Matcher matcher, org.eclipse.emf.ecore.EObject object, DeltaContainer otherDeltaContainer)
matcher
- a matcherobject
- an objectotherDeltaContainer
- the other contributor resourcepublic static Delta getDeltaByObjectId(DeltaContainer deltaContainer, DeltaType type, java.lang.String objectId)
public static Delta getDeltaByLocationId(DeltaContainer deltaContainer, DeltaType type, java.lang.String locationId)
protected boolean canCreateChangeChangeConflict(ChangeDelta c1, ChangeDelta c2)
protected Conflict createConflict(ConflictContainer conflictContainer, Delta delta1, Delta delta2)