Package com.adaptris.util.text.xml
Class ReplaceOriginal
- java.lang.Object
-
- com.adaptris.util.text.xml.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
-
-
-
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 DocumentnewDoc
- the document to merge- Returns:
- the merged document
- Throws:
java.lang.Exception
-
-