ch.elca.el4j.services.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)
File-location:
XmlMerge
Last check-in date:
2009-08-04 15:48:31 +0200 (Di, 04. Aug 2009) by swismer for revision 3884

Method Summary
 Document merge(Document[] sources)
          Merges the given Document sources.
 InputStream merge(InputStream[] sources)
          Merges the given InputStream sources.
 String merge(String[] sources)
          Merges the given String sources.
 void setRootMapper(Mapper rootMapper)
          Sets the Mapper which will be applied to the root element.
 void setRootMergeAction(MergeAction rootMergeAction)
          Sets the MergeAction which will be applied to the root element.
 

Method Detail

merge

InputStream merge(InputStream[] sources)
                  throws AbstractXmlMergeException
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

Document merge(Document[] sources)
               throws AbstractXmlMergeException
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

String merge(String[] sources)
             throws AbstractXmlMergeException
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

void setRootMergeAction(MergeAction rootMergeAction)
Sets the MergeAction which will be applied to the root element.

Parameters:
rootMergeAction - The MergeAction which will be applied to the root element

setRootMapper

void setRootMapper(Mapper rootMapper)
Sets the Mapper which will be applied to the root element.

Parameters:
rootMapper - The Mapper which will be applied to the root element


Copyright © 2005-2011 ELCA. All Rights Reserved.