org.codehaus.plexus.metadata.merge
Class PlexusXmlMerger

java.lang.Object
  extended by org.codehaus.plexus.metadata.merge.AbstractMerger
      extended by org.codehaus.plexus.metadata.merge.PlexusXmlMerger
All Implemented Interfaces:
Merger

@Component(role=Merger.class,
           hint="plexusXml")
public class PlexusXmlMerger
extends AbstractMerger

Plexus XML merger. This is a superset of the components xml merger so can be used in its place if necessary.

Version:
$Id: PlexusXmlMerger.java 8174 2009-05-11 15:15:23Z jvanzyl $
Author:
Rahul Thakur

Field Summary
 
Fields inherited from interface org.codehaus.plexus.metadata.merge.Merger
ROLE
 
Constructor Summary
PlexusXmlMerger()
           
 
Method Summary
 org.jdom.Document merge(org.jdom.Document dDocument, org.jdom.Document rDocument)
          Merge with the recessive document.
 
Methods inherited from class org.codehaus.plexus.metadata.merge.AbstractMerger
mergeDescriptors, writeMergedDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlexusXmlMerger

public PlexusXmlMerger()
Method Detail

merge

public org.jdom.Document merge(org.jdom.Document dDocument,
                               org.jdom.Document rDocument)
                        throws MergeException
Description copied from interface: Merger
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.
See Also:
Merger.merge(org.jdom.Document, org.jdom.Document)


Copyright © 2010. All Rights Reserved.