|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.xpn.xwiki.plugin.XWikiDefaultPlugin
com.xpn.xwiki.plugin.diff.DiffPlugin
@Deprecated public class DiffPlugin
Constructor Summary | |
---|---|
DiffPlugin(String name,
String className,
XWikiContext context)
Deprecated. |
Method Summary | |
---|---|
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 |
Methods inherited from class com.xpn.xwiki.plugin.XWikiDefaultPlugin |
---|
beginParsing, beginRendering, commonTagsHandler, downloadAttachment, endParsing, endRendering, endRenderingHandler, flushCache, flushCache, getClassName, init, insidePREHandler, outsidePREHandler, setClassName, setName, startRenderingHandler, virtualInit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 contextMethod Detail |
---|
public 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 context
null
if the plugin doesn't want to expose a public APIpublic List getDifferencesAsList(String text1, String text2) throws XWikiException
text1
- original contenttext2
- revised content
XWikiException
protected List getDeltas(org.suigeneris.jrcs.diff.Revision rev)
protected String escape(String text)
public List getWordDifferencesAsList(String text1, String text2) throws XWikiException
text1
- original contenttext2
- revised content
XWikiException
public String getWordDifferencesAsHTML(String text1, String text2) throws XWikiException
text1
- original contenttext2
- revised content
XWikiException
public String getDifferencesAsHTML(String text1, String text2) throws XWikiException
text1
- original contenttext2
- revised content
XWikiException
public String getDifferencesAsHTML(String text1, String text2, boolean allDoc) throws XWikiException
text1
- original contenttext2
- revised contentallDoc
- show all document
XWikiException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |