Class ChooseByNameMergeStrategy
- java.lang.Object
-
- org.codehaus.cargo.module.merge.tagstrategy.AbstractChoiceMergeStrategy
-
- org.codehaus.cargo.module.merge.tagstrategy.ChooseByNameMergeStrategy
-
- All Implemented Interfaces:
MergeStrategy
public class ChooseByNameMergeStrategy extends AbstractChoiceMergeStrategy
A merging strategy that is determined by name.
-
-
Constructor Summary
Constructors Constructor Description ChooseByNameMergeStrategy(MergeStrategy defaultStrategy)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addStrategyForName(String name, MergeStrategy strategy)
If the element has this name, then use this strategy.-
Methods inherited from class org.codehaus.cargo.module.merge.tagstrategy.AbstractChoiceMergeStrategy
inBoth, inLeft, inRight
-
-
-
-
Constructor Detail
-
ChooseByNameMergeStrategy
public ChooseByNameMergeStrategy(MergeStrategy defaultStrategy)
Constructor.- Parameters:
defaultStrategy
- in the default strategy to use
-
-
Method Detail
-
addStrategyForName
public void addStrategyForName(String name, MergeStrategy strategy)
If the element has this name, then use this strategy.- Parameters:
name
- in the namestrategy
- in the strategy
-
-