org.apache.wiki.diff
Class DiffProvider.NullDiffProvider

java.lang.Object
  extended by org.apache.wiki.diff.DiffProvider.NullDiffProvider
All Implemented Interfaces:
DiffProvider, WikiProvider
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.WikiProvider
LATEST_VERSION
 
Constructor Summary
DiffProvider.NullDiffProvider()
           
 
Method Summary
 String getProviderInfo()
          Return a valid HTML string for information.
 void initialize(WikiEngine engine, Properties properties)
          Initializes the page provider.
 String makeDiffHtml(WikiContext ctx, String oldWikiText, String newWikiText)
          The return string is to be XHTML compliant ready to display html.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiffProvider.NullDiffProvider

public DiffProvider.NullDiffProvider()
Method Detail

makeDiffHtml

public String makeDiffHtml(WikiContext ctx,
                           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.

Specified by:
makeDiffHtml in interface DiffProvider
Parameters:
ctx - The Wiki Context
oldWikiText - the old text
newWikiText - the new text
Returns:
An XHTML diff.

initialize

public void initialize(WikiEngine engine,
                       Properties properties)
                throws NoRequiredPropertyException,
                       IOException
Initializes the page provider.

Specified by:
initialize in interface WikiProvider
Parameters:
engine - WikiEngine to own this provider
properties - A set of properties used to initialize this provider
Throws:
NoRequiredPropertyException - If the provider needs a property which is not found in the property set
IOException - If there is an IO problem

getProviderInfo

public String getProviderInfo()
Return a valid HTML string for information. May be anything.

Specified by:
getProviderInfo in interface WikiProvider
Returns:
A string describing the provider.


Copyright © {inceptionYear}-2014 The Apache Software Foundation. All rights reserved.