@API(type=NOT_EXTENDABLE, src=PUBLIC) public interface AuthorDifferencePerformer
AuthorDifferencePerformeris used to compare two Author documents using a set of options. The result of the diff is a list with the differences between the resources.
Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
|Modifier and Type||Method and Description|
Performs the diff operation between the resources represented by the two AuthorAccess.
Set the base Author document, used to perform a three-way comparison.
Set the documents to be compared.
Set the options used by the diff performer to perform the comparison.
Signal to the diff performer that it must stop.
void setBaseDocument(AuthorAccess baseAuthorAccess)
baseAuthorAccess- The access to the base Author document.
void setDocumentsToCompare(AuthorAccess leftAuthorAccess, AuthorAccess rightAuthorAccess)
leftAuthorAccess- The access to the left Author document.
rightAuthorAccess- The access to the right Author document.
void setOptions(DiffOptions diffOptions)
nullmeaning a default set of options will be used.
diffOptions- The options.
java.util.List<Difference> performDiff(DiffProgressListener diffProgressListener) throws DiffException, java.io.IOException
DiffProgressListenernotified about the progress of the diff. It can be
nullwhen the diff progress doesn't need to be monitored.
Differenceobjects that contain the start and end offsets in the Author content for each Author document.
DiffOptions.isEnableHierarchicalDiff()returns true) then the returned list contains
DiffException- If the diff operation fails or it is stopped before it finishes.
© Copyright Syncro Soft SRL 2002 - 2020. All rights reserved.