|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.cargo.module.merge.tagstrategy.AbstractChoiceMergeStrategy
public abstract class AbstractChoiceMergeStrategy
A merging strategy that can make a decision between various differing merge strategies, depending upon the state that it is passed. Child classes implement the getApplicableStrategy based on whatever information is neccessary to make that decision
| Constructor Summary | |
|---|---|
AbstractChoiceMergeStrategy()
|
|
| Method Summary | |
|---|---|
int |
inBoth(Descriptor set,
DescriptorElement left,
DescriptorElement right)
Process when the element appears in both descriptors. |
int |
inLeft(Descriptor set,
DescriptorElement element)
Process when the element appears just in the left descriptor. |
int |
inRight(Descriptor set,
DescriptorElement element)
Process when the element appears just in the left descriptor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractChoiceMergeStrategy()
| Method Detail |
|---|
public int inLeft(Descriptor set,
DescriptorElement element)
inLeft in interface MergeStrategyset - output descriptorelement - left element
org.codehaus.cargo.module.merge.strategy.MergeStrategy#inLeft(org.codehaus.cargo.module.merge.AbstractMergeSet, org.w3c.dom.Element)
public int inRight(Descriptor set,
DescriptorElement element)
inRight in interface MergeStrategyset - output descriptorelement - right element
org.codehaus.cargo.module.merge.strategy.MergeStrategy#inRight(org.codehaus.cargo.module.merge.AbstractMergeSet, org.w3c.dom.Element)
public int inBoth(Descriptor set,
DescriptorElement left,
DescriptorElement right)
inBoth in interface MergeStrategyset - output descriptorleft - left elementright - right element
org.codehaus.cargo.module.merge.strategy.MergeStrategy#inBoth(org.codehaus.cargo.module.merge.AbstractMergeSet, org.codehaus.cargo.module.merge.MergePair)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||