OpenOffice.org
XMerge API

org.openoffice.xmerge.converter.xml.sxw.aportisdoc
Class DocumentMergerImpl

java.lang.Object
  |
  +--org.openoffice.xmerge.converter.xml.sxw.aportisdoc.DocumentMergerImpl
All Implemented Interfaces:
DocumentMerger

public class DocumentMergerImpl
extends java.lang.Object
implements DocumentMerger

AportisDoc implementation of DocumentMerger for the PluginFactoryImpl.


Constructor Summary
DocumentMergerImpl(Document doc, ConverterCapabilities cc)
           
 
Method Summary
 void merge(Document modifiedDoc)
          This method will find the changes that had happened in the modifiedDoc Document object given the designated original Document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentMergerImpl

public DocumentMergerImpl(Document doc,
                          ConverterCapabilities cc)
Method Detail

merge

public void merge(Document modifiedDoc)
           throws MergeException
Description copied from interface: DocumentMerger

This method will find the changes that had happened in the modifiedDoc Document object given the designated original Document.

Note that this process may need the knowledge of the conversion process since some conversion process are lossy. Items/Data that are lost during the conversion process are not classified as changes. The main target of this method is to apply the changes done in modifiedDoc into the assigned original Document object, thus it also will try to preserve items that were originally in the original Document, but never got transferred during the serialize process/method call. After this method call, the original Document object will contain the changes applied.

This method may or may not be thread-safe. Also, it is expected that the user uses only one instance of a DocumentMerger object per merge process. Create another DocumentMerger object for another merge process.

Specified by:
merge in interface DocumentMerger
Following copied from interface: org.openoffice.xmerge.DocumentMerger
Parameters:
modifiedDoc - device Document object.
Throws:
MergeException - If any merge error occurs.

OpenOffice.org
XMerge API

Copyright © 2002 OpenOffice.org