Package ch.galinet.xml.xmlmerge
Interface XmlMerge
- All Known Implementing Classes:
ConfigurableXmlMerge,DefaultXmlMerge
public interface XmlMerge
Entry point for merging XML documents.
- Author:
- Laurent Bovet (LBO), Alex Mathey (AMA)
-
Method Summary
Modifier and TypeMethodDescriptionmerge(InputStream[] sources) Merges the given InputStream sources.Merges the given String sources.Merges the given Document sources.voidsetRootMapper(Mapper rootMapper) Sets the Mapper which will be applied to the root element.voidsetRootMergeAction(MergeAction rootMergeAction) Sets the MergeAction which will be applied to the root element.
-
Method Details
-
merge
Merges the given InputStream sources.- Parameters:
sources- Array of InputStream sources to merge- Returns:
- InputStream corresponding to the merged sources
- Throws:
AbstractXmlMergeException- If an error occurred during the merge
-
merge
Merges the given Document sources.- Parameters:
sources- Array of Document sources to merge- Returns:
- Document corresponding to the merged sources
- Throws:
AbstractXmlMergeException- If an error occurred during the merge
-
merge
Merges the given String sources.- Parameters:
sources- Array of String sources to merge- Returns:
- String corresponding to the merged sources
- Throws:
AbstractXmlMergeException- If an error occurred during the merge
-
setRootMergeAction
Sets the MergeAction which will be applied to the root element.- Parameters:
rootMergeAction- The MergeAction which will be applied to the root element
-
setRootMapper
Sets the Mapper which will be applied to the root element.- Parameters:
rootMapper- The Mapper which will be applied to the root element
-