Package org.apache.wiki.diff
Class DiffProvider.NullDiffProvider
java.lang.Object
org.apache.wiki.diff.DiffProvider.NullDiffProvider
- All Implemented Interfaces:
WikiProvider,DiffProvider
- Enclosing interface:
- DiffProvider
public static class DiffProvider.NullDiffProvider extends Object implements DiffProvider
If there is no diff provider set, this provider will work instead.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.wiki.diff.DiffProvider
DiffProvider.NullDiffProvider -
Field Summary
Fields inherited from interface org.apache.wiki.api.providers.WikiProvider
LATEST_VERSION -
Constructor Summary
Constructors Constructor Description NullDiffProvider() -
Method Summary
Modifier and Type Method Description StringgetProviderInfo()Return a valid HTML string for information.voidinitialize(Engine engine, Properties properties)Initializes the page provider.StringmakeDiffHtml(Context ctx, String oldWikiText, String newWikiText)The return string is to be XHTML compliant ready to display html.
-
Constructor Details
-
NullDiffProvider
public NullDiffProvider()
-
-
Method Details
-
makeDiffHtml
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.- Specified by:
makeDiffHtmlin interfaceDiffProvider- Parameters:
ctx- The Wiki ContextoldWikiText- the old textnewWikiText- the new text- Returns:
- An XHTML diff.
-
initialize
public void initialize(Engine engine, Properties properties) throws NoRequiredPropertyException, IOExceptionInitializes the page provider.- Specified by:
initializein interfaceWikiProvider- Parameters:
engine- Engine to own this providerproperties- A set of properties used to initialize this provider- Throws:
NoRequiredPropertyException- If the provider needs a property which is not found in the property setIOException- If there is an IO problem
-
getProviderInfo
Return a valid HTML string for information. May be anything.- Specified by:
getProviderInfoin interfaceWikiProvider- Returns:
- A string describing the provider.
-