|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.cargo.module.merge.strategy.MergeStrategy
A merge strategy is a vistor/stratey defining some way in which potential merge conflicts can be resolved in the set.
Field Summary | |
static MergeStrategy |
OVERWRITE
Overwrite strategy adds items from the right, and overwrites duplicates. |
static MergeStrategy |
PRESERVE
Preserve strategy only adds items from the right. |
Constructor Summary | |
MergeStrategy()
|
Method Summary | |
int |
inBoth(AbstractMergeSet set,
MergePair pair)
Deal with merging an element appears in both sets. |
int |
inLeft(AbstractMergeSet set,
org.w3c.dom.Element element)
Deal with merging an element that only appears in the left set. |
int |
inRight(AbstractMergeSet set,
org.w3c.dom.Element element)
Deal with merging an element that only appears in the right set. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final MergeStrategy PRESERVE
public static final MergeStrategy OVERWRITE
Constructor Detail |
public MergeStrategy()
Method Detail |
public int inLeft(AbstractMergeSet set, org.w3c.dom.Element element)
set
- in the calling MergeSetelement
- in the item present only in the left set
public int inRight(AbstractMergeSet set, org.w3c.dom.Element element)
set
- in the calling MergeSetelement
- in the item present only in the left set
public int inBoth(AbstractMergeSet set, MergePair pair)
set
- in the calling MergeSetpair
- the pair of items
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |