org.apache.wiki.diff
Class DifferenceManager
java.lang.Object
org.apache.wiki.diff.DifferenceManager
public class DifferenceManager
- extends Object
Load, initialize and delegate to the DiffProvider that will actually do the work.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROP_DIFF_PROVIDER
public static final String PROP_DIFF_PROVIDER
- Property value for storing a diff provider. Value is "jspwiki.diffProvider".
- See Also:
- Constant Field Values
DifferenceManager
public DifferenceManager(WikiEngine engine,
Properties props)
- Creates a new DifferenceManager for the given engine.
- Parameters:
engine
- The WikiEngine.props
- A set of properties.
makeDiff
public String makeDiff(WikiContext context,
String firstWikiText,
String secondWikiText)
- Returns valid XHTML string to be used in any way you please.
- Parameters:
context
- The Wiki ContextfirstWikiText
- The old textsecondWikiText
- the new text
- Returns:
- XHTML, or empty string, if no difference detected.
Copyright © {inceptionYear}-2014 The Apache Software Foundation. All rights reserved.