Class 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.
    • Method Detail

      • 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 input
        right - right input
        Returns:
        a diff