@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.
The name which can be used for accessing this plugin from
XWiki.getPlugin(String, XWikiContext) . |
Api |
getPluginApi(XWikiPluginInterface plugin,
XWikiContext context)
Deprecated.
Get a public scriptable API that can be used to call methods of the (privileged) plugin.
|
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()
XWikiPluginInterface
XWiki.getPlugin(String, XWikiContext)
.getName
in interface XWikiPluginInterface
getName
in class XWikiDefaultPlugin
public Api getPluginApi(XWikiPluginInterface plugin, XWikiContext context)
XWikiPluginInterface
getPluginApi
in interface XWikiPluginInterface
getPluginApi
in class XWikiDefaultPlugin
plugin
- the plugin instance to wrapcontext
- the current request contextnull
if the plugin doesn't want to expose a public APIpublic 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–2015 XWiki. All rights reserved.