Package org.codehaus.cargo.module
Class XmlMerger
- java.lang.Object
-
- org.codehaus.cargo.util.log.LoggedObject
-
- org.codehaus.cargo.module.XmlMerger
-
- All Implemented Interfaces:
DescriptorMerger
,Loggable
- Direct Known Subclasses:
ResinWebXmlMerger
,WebXmlMerger
public class XmlMerger extends LoggedObject implements DescriptorMerger
Class for merging XML FIles.
-
-
Constructor Summary
Constructors Constructor Description XmlMerger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMerger(DescriptorMerger merger)
List<DescriptorMerger>
getMergers()
void
init(Descriptor base)
Initialise the merger with the base (first) item to be merged.void
merge(Descriptor other)
Merge the descriptor with a second item.-
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger, setLogger
-
-
-
-
Method Detail
-
addMerger
public void addMerger(DescriptorMerger merger)
- Parameters:
merger
- merge class to add
-
init
public void init(Descriptor base)
Initialise the merger with the base (first) item to be merged.- Specified by:
init
in interfaceDescriptorMerger
- Parameters:
base
- Descriptor to use
-
merge
public void merge(Descriptor other)
Merge the descriptor with a second item.- Specified by:
merge
in interfaceDescriptorMerger
- Parameters:
other
- Descriptor to use
-
getMergers
public List<DescriptorMerger> getMergers()
- Returns:
- list of merge classes
-
-