|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.util.DiffUtils
ConfluenceDiff instead.
@Deprecated public class DiffUtils
| Field Summary | |
|---|---|
static byte |
DIFF_MODE_ADD
Deprecated. |
static byte |
DIFF_MODE_CHANGE_ADD
Deprecated. |
static byte |
DIFF_MODE_CHANGE_DELETE
Deprecated. |
static byte |
DIFF_MODE_DELETE
Deprecated. |
static byte |
DIFF_MODE_NONE
Deprecated. |
static String |
STYLE_ADDED
Deprecated. |
static String |
STYLE_DELETED
Deprecated. |
static String |
STYLE_ERROR
Deprecated. |
static String |
STYLE_NONE
Deprecated. |
static byte |
WORD_DIFF_MAX
Deprecated. maximum percentage of words to diff in a line. |
| Constructor Summary | |
|---|---|
DiffUtils()
Deprecated. |
|
| Method Summary | |
|---|---|
static String |
diffLine(String orig,
String rev)
Deprecated. Will perform a diff on two lines. |
static DiffResult |
generateDiff(ContentEntityObject originalPage,
ContentEntityObject revisedPage)
Deprecated. Calculates the difference between two pages and returns the result as HTML. |
static byte |
getDiffMode()
Deprecated. |
static Object[] |
loadPage(ContentEntityObject page)
Deprecated. |
static String |
mergeChanges(String originalPage,
String revisionA,
String revisionB)
Deprecated. |
static void |
setDiffMode(byte mode)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte WORD_DIFF_MAX
public static final byte DIFF_MODE_NONE
public static final byte DIFF_MODE_ADD
public static final byte DIFF_MODE_DELETE
public static final byte DIFF_MODE_CHANGE_DELETE
public static final byte DIFF_MODE_CHANGE_ADD
public static final String STYLE_NONE
public static final String STYLE_ADDED
public static final String STYLE_DELETED
public static final String STYLE_ERROR
| Constructor Detail |
|---|
public DiffUtils()
| Method Detail |
|---|
public static DiffResult generateDiff(ContentEntityObject originalPage,
ContentEntityObject revisedPage)
throws org.apache.commons.jrcs.diff.DifferentiationFailedException
originalPage - The original pagerevisedPage - The revised page
org.apache.commons.jrcs.diff.DifferentiationFailedExceptionpublic static Object[] loadPage(ContentEntityObject page)
public static String diffLine(String orig,
String rev)
throws org.apache.commons.jrcs.diff.DifferentiationFailedException
orig - the original linerev - the revised line
org.apache.commons.jrcs.diff.DifferentiationFailedExceptionpublic static byte getDiffMode()
public static void setDiffMode(byte mode)
public static String mergeChanges(String originalPage,
String revisionA,
String revisionB)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||