com.atlassian.confluence.diff
Class WikiConvertingHtmlDiffer
java.lang.Object
com.atlassian.confluence.diff.WikiConvertingHtmlDiffer
- All Implemented Interfaces:
- Differ
public class WikiConvertingHtmlDiffer
- extends 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WikiConvertingHtmlDiffer
public WikiConvertingHtmlDiffer(XhtmlContent xhtmlContent,
DaisyHtmlDiffer delegateDiffer)
diff
public 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 inputright - right input
- Returns:
- a diff
Copyright © 2003-2013 Atlassian. All Rights Reserved.