org.codehaus.plexus.cdc.merge

Interface Merger

public interface Merger

Version: $Id: Merger.java 3514 2006-07-12 13:03:43Z brett $

Author: Rahul Thakur

Field Summary
StringROLE
Method Summary
Documentmerge(Document dDocument, Document rDocument)
Merge with the recessive document.
voidwriteMergedDocument(Document mergedDocument, File file)
Allows writing out a merged JDom Document to the specified file.

Field Detail

ROLE

public String ROLE

Method Detail

merge

public Document merge(Document dDocument, Document rDocument)
Merge with the recessive document.

Parameters: dDocument the dominant document. rDocument the recessive document.

Returns: the merged Document instance.

Throws: MergeException if there was an error in merge.

writeMergedDocument

public void writeMergedDocument(Document mergedDocument, File file)
Allows writing out a merged JDom Document to the specified file.

Parameters: mergedDocument the merged Document instance. file File to write the merged contents to.

Throws: IOException if there was an error while writing merged contents to the specified file.

Copyright © 2001-2009 Codehaus. All Rights Reserved.