public class TraditionalDiffProvider extends Object implements DiffProvider
DiffProvider.NullDiffProvider
LATEST_VERSION
Constructor and Description |
---|
TraditionalDiffProvider()
Constructs the provider.
|
Modifier and Type | Method and Description |
---|---|
String |
getProviderInfo()
Return a valid HTML string for information.
|
void |
initialize(WikiEngine engine,
Properties properties)
Initializes the page provider.
|
String |
makeDiffHtml(WikiContext ctx,
String p1,
String p2)
Makes a diff using the BMSI utility package.
|
public TraditionalDiffProvider()
public String getProviderInfo()
getProviderInfo
in interface WikiProvider
WikiProvider.getProviderInfo()
public void initialize(WikiEngine engine, Properties properties) throws NoRequiredPropertyException, IOException
initialize
in interface WikiProvider
engine
- WikiEngine to own this providerproperties
- A set of properties used to initialize this providerNoRequiredPropertyException
- If the provider needs a property which is not found in the property setIOException
- If there is an IO problemWikiProvider.initialize(org.apache.wiki.WikiEngine, java.util.Properties)
public String makeDiffHtml(WikiContext ctx, String p1, String p2)
makeDiffHtml
in interface DiffProvider
ctx
- The WikiContext in which the diff should be made.p1
- The first stringp2
- The second string.Copyright © 2001-2018 The Apache Software Foundation. All rights reserved.