Interface Merger
-
- All Known Implementing Classes:
AbstractMerger,ComponentsXmlMerger,PlexusXmlMerger
public interface Merger- Author:
- Rahul Thakur
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringROLE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.jdom2.Documentmerge(org.jdom2.Document dDocument, org.jdom2.Document rDocument)Merge with the recessive document.voidmergeDescriptors(java.io.File outputDescriptor, java.util.List<java.io.File> descriptors)voidwriteMergedDocument(org.jdom2.Document mergedDocument, java.io.File file)Allows writing out a merged JDom Document to the specified file.
-
-
-
Method Detail
-
merge
org.jdom2.Document merge(org.jdom2.Document dDocument, org.jdom2.Document rDocument) throws MergeExceptionMerge with the recessive document.- Parameters:
dDocument- the dominant document.rDocument- the recessive document.- Returns:
- the merged
Documentinstance. - Throws:
MergeException- if there was an error in merge.
-
writeMergedDocument
void writeMergedDocument(org.jdom2.Document mergedDocument, java.io.File file) throws java.io.IOExceptionAllows writing out a merged JDom Document to the specified file.- Parameters:
mergedDocument- the mergedDocumentinstance.file- File to write the merged contents to.- Throws:
java.io.IOException- if there was an error while writing merged contents to the specified file.
-
mergeDescriptors
void mergeDescriptors(java.io.File outputDescriptor, java.util.List<java.io.File> descriptors) throws java.io.IOException- Throws:
java.io.IOException
-
-