@Deprecated public class DiffPlugin extends XWikiDefaultPlugin
Constructor and Description |
---|
DiffPlugin(String name,
String className,
XWikiContext context)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected String |
escape(String text)
Deprecated.
|
protected List |
getDeltas(org.suigeneris.jrcs.diff.Revision rev)
Deprecated.
|
String |
getDifferencesAsHTML(String text1,
String text2)
Deprecated.
Return an html blocks representing line diffs between text1 and text2
|
String |
getDifferencesAsHTML(String text1,
String text2,
boolean allDoc)
Deprecated.
Return an html blocks representing line diffs between text1 and text2
|
List |
getDifferencesAsList(String text1,
String text2)
Deprecated.
Return a list of Delta objects representing line differences in text1 and text2
|
String |
getName()
Deprecated.
|
Api |
getPluginApi(XWikiPluginInterface plugin,
XWikiContext context)
Deprecated.
|
String |
getWordDifferencesAsHTML(String text1,
String text2)
Deprecated.
Return an html blocks representing word diffs between text1 and text2
|
List |
getWordDifferencesAsList(String text1,
String text2)
Deprecated.
Return a list of Delta objects representing word differences in text1 and text2
|
beginParsing, beginRendering, commonTagsHandler, downloadAttachment, endParsing, endRendering, endRenderingHandler, flushCache, flushCache, getClassName, getLocalization, init, insidePREHandler, localizePlainOrKey, outsidePREHandler, setClassName, setName, startRenderingHandler, virtualInit
public DiffPlugin(String name, String className, XWikiContext context)
name
- the plugin name, usually ignored, since plugins have a fixed nameclassName
- the name of this class, ignoredcontext
- the current request contextpublic String getName()
getName
in interface XWikiPluginInterface
getName
in class XWikiDefaultPlugin
public Api getPluginApi(XWikiPluginInterface plugin, XWikiContext context)
getPluginApi
in interface XWikiPluginInterface
getPluginApi
in class XWikiDefaultPlugin
public List getDifferencesAsList(String text1, String text2) throws XWikiException
text1
- original contenttext2
- revised contentXWikiException
protected List getDeltas(org.suigeneris.jrcs.diff.Revision rev)
public List getWordDifferencesAsList(String text1, String text2) throws XWikiException
text1
- original contenttext2
- revised contentXWikiException
public String getWordDifferencesAsHTML(String text1, String text2) throws XWikiException
text1
- original contenttext2
- revised contentXWikiException
public String getDifferencesAsHTML(String text1, String text2) throws XWikiException
text1
- original contenttext2
- revised contentXWikiException
public String getDifferencesAsHTML(String text1, String text2, boolean allDoc) throws XWikiException
text1
- original contenttext2
- revised contentallDoc
- show all documentXWikiException
Copyright © 2004–2017 XWiki. All rights reserved.