Package org.codehaus.cargo.module.merge
Class DocumentMergerByXslt
- java.lang.Object
-
- org.codehaus.cargo.module.merge.DocumentMergerByXslt
-
- All Implemented Interfaces:
MergeProcessor
public class DocumentMergerByXslt extends Object implements MergeProcessor
-
-
Constructor Summary
Constructors Constructor Description DocumentMergerByXslt(InputStream stream)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMergeItem(Object mergeItem)
Add an item to be merged.Object
performMerge()
Perform the merge.
-
-
-
Constructor Detail
-
DocumentMergerByXslt
public DocumentMergerByXslt(InputStream stream)
Constructor.- Parameters:
stream
- XML Stream for source XSLT
-
-
Method Detail
-
addMergeItem
public void addMergeItem(Object mergeItem) throws MergeException
Add an item to be merged.- Specified by:
addMergeItem
in interfaceMergeProcessor
- Parameters:
mergeItem
- in the item to merge.- Throws:
MergeException
- on exceptions
-
performMerge
public Object performMerge() throws MergeException
Perform the merge.- Specified by:
performMerge
in interfaceMergeProcessor
- Returns:
- the merged artifact
- Throws:
MergeException
- if there is a problem
-
-