org.eclipse.emf.spi.cdo
Class DefaultCDOMerger.PerFeature.ManyValued

java.lang.Object
  extended by org.eclipse.emf.spi.cdo.DefaultCDOMerger
      extended by org.eclipse.emf.spi.cdo.DefaultCDOMerger.PerFeature
          extended by org.eclipse.emf.spi.cdo.DefaultCDOMerger.PerFeature.ManyValued
All Implemented Interfaces:
CDOMerger
Enclosing class:
DefaultCDOMerger.PerFeature

public static class DefaultCDOMerger.PerFeature.ManyValued
extends DefaultCDOMerger.PerFeature


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.spi.cdo.DefaultCDOMerger.PerFeature
DefaultCDOMerger.PerFeature.ManyValued
 
Nested classes/interfaces inherited from class org.eclipse.emf.spi.cdo.DefaultCDOMerger
DefaultCDOMerger.ChangedInSourceAndDetachedInTargetConflict, DefaultCDOMerger.ChangedInSourceAndTargetConflict, DefaultCDOMerger.ChangedInTargetAndDetachedInSourceConflict, DefaultCDOMerger.Conflict, DefaultCDOMerger.PerFeature
 
Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.transaction.CDOMerger
CDOMerger.ConflictException
 
Constructor Summary
DefaultCDOMerger.PerFeature.ManyValued()
           
 
Method Summary
static void adjustAfterAddition(List<CDOFeatureDelta> list, int index)
           
static void adjustAfterMove(List<CDOFeatureDelta> list, int oldPosition, int newPosition)
           
static void adjustAfterRemoval(List<CDOFeatureDelta> list, int index)
           
protected  CDOFeatureDelta changedInSourceAndTargetManyValued(EStructuralFeature feature, CDOFeatureDelta targetFeatureDelta, CDOFeatureDelta sourceFeatureDelta)
           
protected  CDOListFeatureDelta createResult(EStructuralFeature feature)
           
protected  void handleListDelta(List<CDOFeatureDelta> resultList, List<CDOFeatureDelta> listToHandle, List<CDOFeatureDelta> listToAdjust)
           
protected  boolean handleListDeltaAdd(List<CDOFeatureDelta> resultList, CDOAddFeatureDelta addDelta, List<CDOFeatureDelta> listToAdjust)
          Decides whether an ADD delta is to be taken (added to the result list) and returns true if it was taken, false otherwise.
protected  boolean handleListDeltaMove(List<CDOFeatureDelta> resultList, CDOMoveFeatureDelta moveDelta, List<CDOFeatureDelta> listToAdjust)
          Decides whether a MOVE delta is to be taken (added to the result list) and returns true if it was taken, false otherwise.
protected  boolean handleListDeltaRemove(List<CDOFeatureDelta> resultList, CDORemoveFeatureDelta removeDelta, List<CDOFeatureDelta> listToAdjust)
          Decides whether a REMOVE delta is to be taken (added to the result list) and returns true if it was taken, false otherwise.
 
Methods inherited from class org.eclipse.emf.spi.cdo.DefaultCDOMerger.PerFeature
changedInSource, changedInSourceAndTarget, changedInSourceAndTarget, changedInSourceAndTargetSingleValued, changedInTarget
 
Methods inherited from class org.eclipse.emf.spi.cdo.DefaultCDOMerger
addedInSource, addedInSourceAndTarget, addedInTarget, changedInSource, changedInSourceAndDetachedInTarget, changedInTarget, changedInTargetAndDetachedInSource, detachedInSource, detachedInSourceAndTarget, detachedInTarget, getConflicts, getResult, getSourceMap, getTargetMap, merge, merge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCDOMerger.PerFeature.ManyValued

public DefaultCDOMerger.PerFeature.ManyValued()
Method Detail

changedInSourceAndTargetManyValued

protected CDOFeatureDelta changedInSourceAndTargetManyValued(EStructuralFeature feature,
                                                             CDOFeatureDelta targetFeatureDelta,
                                                             CDOFeatureDelta sourceFeatureDelta)
Overrides:
changedInSourceAndTargetManyValued in class DefaultCDOMerger.PerFeature
Returns:
the result feature delta, or null to indicate an unresolved conflict.

createResult

protected CDOListFeatureDelta createResult(EStructuralFeature feature)

handleListDelta

protected void handleListDelta(List<CDOFeatureDelta> resultList,
                               List<CDOFeatureDelta> listToHandle,
                               List<CDOFeatureDelta> listToAdjust)

handleListDeltaAdd

protected boolean handleListDeltaAdd(List<CDOFeatureDelta> resultList,
                                     CDOAddFeatureDelta addDelta,
                                     List<CDOFeatureDelta> listToAdjust)
Decides whether an ADD delta is to be taken (added to the result list) and returns true if it was taken, false otherwise. Note that the passed ADD delta has to be copied prior to adding it to the result list!


handleListDeltaRemove

protected boolean handleListDeltaRemove(List<CDOFeatureDelta> resultList,
                                        CDORemoveFeatureDelta removeDelta,
                                        List<CDOFeatureDelta> listToAdjust)
Decides whether a REMOVE delta is to be taken (added to the result list) and returns true if it was taken, false otherwise. Note that the passed REMOVE delta has to be copied prior to adding it to the result list!


handleListDeltaMove

protected boolean handleListDeltaMove(List<CDOFeatureDelta> resultList,
                                      CDOMoveFeatureDelta moveDelta,
                                      List<CDOFeatureDelta> listToAdjust)
Decides whether a MOVE delta is to be taken (added to the result list) and returns true if it was taken, false otherwise. Note that the passed MOVE delta has to be copied prior to adding it to the result list!


adjustAfterAddition

public static void adjustAfterAddition(List<CDOFeatureDelta> list,
                                       int index)

adjustAfterRemoval

public static void adjustAfterRemoval(List<CDOFeatureDelta> list,
                                      int index)

adjustAfterMove

public static void adjustAfterMove(List<CDOFeatureDelta> list,
                                   int oldPosition,
                                   int newPosition)


Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.