com.atlassian.confluence.diff
Class WikiConvertingHtmlDiffer

java.lang.Object
  extended by com.atlassian.confluence.diff.WikiConvertingHtmlDiffer
All Implemented Interfaces:
Differ

public class WikiConvertingHtmlDiffer
extends java.lang.Object
implements Differ

A Differ implementation that will inspect the BodyType of the content being diff'd and convert any wiki content to HTML prior to diffing using the supplied DaisyHtmlDiffer delegate.


Constructor Summary
WikiConvertingHtmlDiffer(XhtmlContent xhtmlContent, DaisyHtmlDiffer delegateDiffer)
           
 
Method Summary
 java.lang.String diff(ContentEntityObject left, ContentEntityObject right)
          Computes a diff between the specified left and right input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WikiConvertingHtmlDiffer

public WikiConvertingHtmlDiffer(XhtmlContent xhtmlContent,
                                DaisyHtmlDiffer delegateDiffer)
Method Detail

diff

public java.lang.String diff(ContentEntityObject left,
                             ContentEntityObject right)
Description copied from interface: Differ
Computes a diff between the specified left and right input.
The html output will contain span tags with class="diff-html-added|diff-html-removed|diff-html-changed" to indicate differences.

Specified by:
diff in interface Differ
Parameters:
left - left input
right - right input
Returns:
a diff


Copyright © 2003-2014 Atlassian. All Rights Reserved.