Class ReplaceOriginal

  • All Implemented Interfaces:
    DocumentMerge

    public class ReplaceOriginal
    extends java.lang.Object
    Merge implementation that simply replaces the original.

    In the adapter configuration file this class is aliased as xml-replace-original which is the preferred alternative to the fully qualified classname when building your configuration.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.slf4j.Logger log  
    • Constructor Summary

      Constructors 
      Constructor Description
      ReplaceOriginal()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.w3c.dom.Document merge​(org.w3c.dom.Document original, org.w3c.dom.Document newDoc)
      Merge the contents of two XML documents
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • log

        protected transient org.slf4j.Logger log
    • Constructor Detail

      • ReplaceOriginal

        public ReplaceOriginal()
    • Method Detail

      • merge

        public org.w3c.dom.Document merge​(org.w3c.dom.Document original,
                                          org.w3c.dom.Document newDoc)
                                   throws java.lang.Exception
        Description copied from interface: DocumentMerge
        Merge the contents of two XML documents
        Parameters:
        original - the original Document
        newDoc - the document to merge
        Returns:
        the merged document
        Throws:
        java.lang.Exception