org.codehaus.plexus.cdc.merge.support

Class AbstractMergeableElement

public abstract class AbstractMergeableElement extends AbstractMergeableSupport

Version: $Id: AbstractMergeableElement.java 3522 2006-07-12 15:06:21Z brett $

Author: Rahul Thakur

Constructor Summary
AbstractMergeableElement(Element element)
Method Summary
protected booleanisRecessiveElementInConflict(AbstractMergeableElement re, String eltName)
Detects if there was a conflict, that is the specified element was present in both dominant and recessive element-sets.
protected booleanisRecessiveElementInConflict(AbstractMergeableElement re, List eltNameList)
Detects if there was a conflict, that is the specified element was present in both dominant and recessive element-sets.
voidmerge(Mergeable me, MergeStrategy strategy)
Simply delegate to
voidmerge(Mergeable me)
protected booleanmergeableElementComesFromRecessive(AbstractMergeableElement re, String eltName)
Determines if the Element to be merged is to be sourced from Recessive Element set.

Constructor Detail

AbstractMergeableElement

public AbstractMergeableElement(Element element)

Method Detail

isRecessiveElementInConflict

protected boolean isRecessiveElementInConflict(AbstractMergeableElement re, String eltName)

Deprecated: use isRecessiveElementInConflict instead.

Detects if there was a conflict, that is the specified element was present in both dominant and recessive element-sets.

This delegates to isRecessiveElementInConflict.

Parameters: re Recessive element. eltName Element name to test for.

Returns: true if there was a conflict of element.

isRecessiveElementInConflict

protected boolean isRecessiveElementInConflict(AbstractMergeableElement re, List eltNameList)
Detects if there was a conflict, that is the specified element was present in both dominant and recessive element-sets.

Use this to determine conflicts when the Dominant and Recessive element sets are keyed with Composite keys.
For instance: <component> is keyed on <role> and <role-hint>.

Parameters: re eltNameList List of elements that will be checked for values in both dominant and recessive sets.

Returns:

merge

public void merge(Mergeable me, MergeStrategy strategy)
Simply delegate to

See Also: merge

merge

public void merge(Mergeable me)

mergeableElementComesFromRecessive

protected boolean mergeableElementComesFromRecessive(AbstractMergeableElement re, String eltName)
Determines if the Element to be merged is to be sourced from Recessive Element set.

Parameters: re Recessive element. eltName Element name to test for.

Returns:

Copyright © 2001-2010 Codehaus. All Rights Reserved.