Package org.apache.wiki.diff
Class SvnStyleDiffProvider
java.lang.Object
org.apache.wiki.diff.SvnStyleDiffProvider
- All Implemented Interfaces:
org.apache.wiki.api.providers.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 TypeMethodDescriptionvoidinitialize(org.apache.wiki.api.core.Engine engine, Properties properties) makeDiffHtml(org.apache.wiki.api.core.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
public String makeDiffHtml(org.apache.wiki.api.core.Context context, String originalText, String modifiedText) 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(org.apache.wiki.api.core.Engine engine, Properties properties) throws org.apache.wiki.api.exceptions.NoRequiredPropertyException, IOException - Specified by:
initializein interfaceorg.apache.wiki.api.providers.WikiProvider- Throws:
org.apache.wiki.api.exceptions.NoRequiredPropertyExceptionIOException
-
getProviderInfo
- Specified by:
getProviderInfoin interfaceorg.apache.wiki.api.providers.WikiProvider
-