Package org.apache.wiki.diff
Class SvnStyleDiffProvider
java.lang.Object
org.apache.wiki.diff.SvnStyleDiffProvider
- All Implemented Interfaces:
WikiProvider,DiffProvider
SVN/Git style diff provider. Uses the DiffLib, ASF 2.0 licensed.
- Since:
- 3.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.wiki.diff.DiffProvider
DiffProvider.NullDiffProvider -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.apache.wiki.api.providers.WikiProvider
LATEST_VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn a valid HTML string for information.voidinitialize(Engine engine, Properties properties) Initializes the page provider.makeDiffHtml(Context context, String originalText, String modifiedText) The return string is to be XHTML compliant ready to display html.
-
Field Details
-
CSS_DIFF_ADDED
- See Also:
-
CSS_DIFF_REMOVED
- See Also:
-
CSS_DIFF_UNCHANGED
- See Also:
-
CSS_DIFF_CLOSE
- See Also:
-
CELL_CHANGE
- See Also:
-
-
Constructor Details
-
SvnStyleDiffProvider
public SvnStyleDiffProvider()
-
-
Method Details
-
makeDiffHtml
Description copied from interface:DiffProviderThe 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:
context- The Wiki ContextoriginalText- the old textmodifiedText- the new text- Returns:
- An XHTML diff.
-
initialize
public void initialize(Engine engine, Properties properties) throws NoRequiredPropertyException, IOException Description copied from interface:WikiProviderInitializes 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
Description copied from interface:WikiProviderReturn a valid HTML string for information. May be anything.- Specified by:
getProviderInfoin interfaceWikiProvider- Returns:
- A string describing the provider.
-