|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.cargo.module.merge.DocumentMerger
public class DocumentMerger
Class that can merge two DOM Documents, relatively simply. This works by just importing all the child nodes from the right-hand document into the left-hand document. Create the DocumentMerger, then call addMergeItem successive times with Documents. Finally call performMerge(), which will return you the merged DOM Document. This class may be overridden by subclasses that wish to apply strategies to particular types of XML document.
Constructor Summary | |
---|---|
DocumentMerger()
|
Method Summary | |
---|---|
void |
addMergeItem(java.lang.Object mergeItem)
Add an item to be merged. |
java.lang.Object |
performMerge()
Perform the merge. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentMerger()
Method Detail |
---|
public void addMergeItem(java.lang.Object mergeItem) throws MergeException
addMergeItem
in interface MergeProcessor
mergeItem
- in the item to merge.
MergeException
- on exceptionsMergeProcessor.addMergeItem(java.lang.Object)
public java.lang.Object performMerge()
performMerge
in interface MergeProcessor
MergeProcessor.performMerge()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |