org.codehaus.cargo.module.merge.strategy
Class ChooseByNameMergeStrategy

java.lang.Object
  extended byorg.codehaus.cargo.module.merge.strategy.MergeStrategy
      extended byorg.codehaus.cargo.module.merge.strategy.AbstractChoiceMergeStrategy
          extended byorg.codehaus.cargo.module.merge.strategy.ChooseByNameMergeStrategy

public class ChooseByNameMergeStrategy
extends AbstractChoiceMergeStrategy

A merging strategy that is determined by name.

Version:
$Id: $

Field Summary
 
Fields inherited from class org.codehaus.cargo.module.merge.strategy.MergeStrategy
OVERWRITE, PRESERVE
 
Constructor Summary
ChooseByNameMergeStrategy(MergeStrategy defaultStrategy)
          Constructor.
 
Method Summary
 void addStrategyForName(java.lang.String name, MergeStrategy strategy)
          If the element has this name, then use this strategy.
 
Methods inherited from class org.codehaus.cargo.module.merge.strategy.AbstractChoiceMergeStrategy
inBoth, inLeft, inRight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChooseByNameMergeStrategy

public ChooseByNameMergeStrategy(MergeStrategy defaultStrategy)
Constructor.

Parameters:
defaultStrategy - in the default strategy to use
Method Detail

addStrategyForName

public void addStrategyForName(java.lang.String name,
                               MergeStrategy strategy)
If the element has this name, then use this strategy.

Parameters:
name - in the name
strategy - in the strategy


Copyright © 2004-2007 Codehaus. All Rights Reserved.