org.apache.wiki.diff
Class TraditionalDiffProvider
java.lang.Object
org.apache.wiki.diff.TraditionalDiffProvider
- All Implemented Interfaces:
- DiffProvider, WikiProvider
public class TraditionalDiffProvider
- extends Object
- implements DiffProvider
This is the JSPWiki 'traditional' diff. It uses an internal diff engine.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TraditionalDiffProvider
public TraditionalDiffProvider()
- Constructs the provider.
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.
- See Also:
WikiProvider.getProviderInfo()
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 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 set
IOException - If there is an IO problem- See Also:
WikiProvider.initialize(org.apache.wiki.WikiEngine, java.util.Properties)
makeDiffHtml
public String makeDiffHtml(WikiContext ctx,
String p1,
String p2)
- Makes a diff using the BMSI utility package. We use our own diff printer,
which makes things easier.
- Specified by:
makeDiffHtml in interface DiffProvider
- Parameters:
ctx - The WikiContext in which the diff should be made.p1 - The first stringp2 - The second string.
- Returns:
- Full HTML diff.
Copyright © {inceptionYear}-2014 The Apache Software Foundation. All rights reserved.