org.electrocodeogram.cpc.merge.api.strategy
Interface IMergeContext


public interface IMergeContext

A collection of progress/status information for IMergeStrategys as well as some utility functions.

Author:
vw
See Also:
IMergeStrategy

Method Summary
 ICloneObjectExtensionMerger getCloneObjectExtensionMerger()
          Retrieves an ICloneObjectExtensionMerger instance which can be used to merge the extension data of a given clone par.
 java.util.LinkedList<IClone> getPendingBaseClones()
          Retrieves a list of still unhandled base clones.
 java.util.LinkedList<IClone> getPendingLocalClones()
          Retrieves a list of still unhandled local clones in their pre-merge state.
 java.util.LinkedList<IClone> getPendingRemoteClones()
          Retrieves a list of still unhandled remote clones in their pre-merge state.
 boolean isLocalOrRemoteClonePending()
          Checks if there are still some unhandled local or remote clones left in this context.
 

Method Detail

getPendingLocalClones

java.util.LinkedList<IClone> getPendingLocalClones()
Retrieves a list of still unhandled local clones in their pre-merge state.
This list may be modified by an IMergeStrategy.

Returns:
a list of still unhandled local clones in their pre-merge state, may be empty, never null.

getPendingRemoteClones

java.util.LinkedList<IClone> getPendingRemoteClones()
Retrieves a list of still unhandled remote clones in their pre-merge state.
This list may be modified by an IMergeStrategy.

Returns:
a list of still unhandled remote clones in their pre-merge state, may be empty, never null.

getPendingBaseClones

java.util.LinkedList<IClone> getPendingBaseClones()
Retrieves a list of still unhandled base clones.
This list may be modified by an IMergeStrategy.

Returns:
a list of still unhandled base clones, may be empty, never null.

isLocalOrRemoteClonePending

boolean isLocalOrRemoteClonePending()
Checks if there are still some unhandled local or remote clones left in this context.

Returns:
true if getPendingLocalClones() or getPendingRemoteClones() is not empty, false otherwise.

getCloneObjectExtensionMerger

ICloneObjectExtensionMerger getCloneObjectExtensionMerger()
Retrieves an ICloneObjectExtensionMerger instance which can be used to merge the extension data of a given clone par.

Returns:
a ICloneObjectExtensionMerger, never null.