public abstract class AbstractChoiceMergeStrategy extends MergeStrategy
OVERWRITE, PRESERVE
Constructor and Description |
---|
AbstractChoiceMergeStrategy() |
Modifier and Type | Method and Description |
---|---|
int |
inBoth(AbstractMergeSet set,
MergePair pair)
Deal with merging an element appears in both sets.
|
int |
inLeft(AbstractMergeSet set,
Element element)
Deal with merging an element that only appears in the left set.
|
int |
inRight(AbstractMergeSet set,
Element element)
Deal with merging an element that only appears in the right set.
|
public int inLeft(AbstractMergeSet set, Element element)
inLeft
in class MergeStrategy
set
- in the calling MergeSetelement
- in the item present only in the left setMergeStrategy.inLeft(org.codehaus.cargo.module.merge.AbstractMergeSet, org.w3c.dom.Element)
public int inRight(AbstractMergeSet set, Element element)
inRight
in class MergeStrategy
set
- in the calling MergeSetelement
- in the item present only in the left setMergeStrategy.inRight(org.codehaus.cargo.module.merge.AbstractMergeSet, org.w3c.dom.Element)
public int inBoth(AbstractMergeSet set, MergePair pair)
inBoth
in class MergeStrategy
set
- in the calling MergeSetpair
- the pair of itemsMergeStrategy.inBoth(org.codehaus.cargo.module.merge.AbstractMergeSet, org.codehaus.cargo.module.merge.MergePair)
Copyright © 2004-2013 Codehaus. All Rights Reserved.