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 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

      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