Package org.apache.wiki.diff
Interface DiffProvider
- All Superinterfaces:
org.apache.wiki.api.providers.WikiProvider
- All Known Implementing Classes:
DiffProvider.NullDiffProvider,ExternalDiffProvider,SvnStyleDiffProvider
Provides an SPI for creating a diff between two page versions.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classIf there is no diff provider set, this provider will work instead. -
Field Summary
Fields inherited from interface org.apache.wiki.api.providers.WikiProvider
LATEST_VERSION -
Method Summary
Modifier and TypeMethodDescriptionmakeDiffHtml(org.apache.wiki.api.core.Context context, String oldWikiText, String newWikiText) The return string is to be XHTML compliant ready to display html.Methods inherited from interface org.apache.wiki.api.providers.WikiProvider
getProviderInfo, initialize
-
Method Details
-
makeDiffHtml
String makeDiffHtml(org.apache.wiki.api.core.Context context, String oldWikiText, String newWikiText) The return string is to be XHTML compliant ready to display html. No further processing of this text will be done by the wiki engine.- Parameters:
context- The Wiki ContextoldWikiText- the old textnewWikiText- the new text- Returns:
- An XHTML diff.
-