public class GenericDiffBean extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
GenericDiffBean.ColorDiffRevisionVisitor
RevisionVisitor that will generate a listed diff view
Notes:
Each line is given it's own div. |
class |
GenericDiffBean.ColorDiffTableRevisionVisitor
RevisionVisitor that will generate rows for a diff table. |
| Constructor and Description |
|---|
GenericDiffBean() |
GenericDiffBean(String leftContent,
String rightContent)
Create a
GenericDiffBean for the given left and right
content |
| Modifier and Type | Method and Description |
|---|---|
String |
getColorDiffString()
Creates a string containing XHTML representing the differences between
the left and right revision contents.
|
String |
getColorDiffTable()
Creates the rows for an XHTML table representing the differences between
the left and right revision contents.
|
org.apache.commons.jrcs.diff.Revision |
getDifference()
Gets a JRCS
Revision representing the difference between
the left and right content |
String |
getLeftContent()
Get the left content
|
String |
getRightContent()
Gets the right content
|
String |
getUnixDiffString()
Gets the difference between the left and right as a Unix Diff
|
void |
init()
initialise the bean.
|
void |
setLeftContent(String leftContent)
Sets the left content i.e. the old content.
|
void |
setRightContent(String rightContent)
Sets the right content i.e. the new content
|
public GenericDiffBean(String leftContent, String rightContent)
GenericDiffBean for the given left and right
contentleftContent - the left content i.e. the old contentrightContent - the right content i.e. the new contentpublic GenericDiffBean()
public void init()
public String getColorDiffTable()
ColorDiffTableRevisionVisitorGenericDiffBean.ColorDiffTableRevisionVisitorpublic String getColorDiffString()
ColorDiffRevisionVisitorGenericDiffBean.ColorDiffRevisionVisitorpublic String getUnixDiffString()
public String getLeftContent()
public void setLeftContent(String leftContent)
leftContent - A non null string representing the left contentpublic String getRightContent()
public void setRightContent(String rightContent)
rightContent - A non null string representing the right contentpublic org.apache.commons.jrcs.diff.Revision getDifference()
Revision representing the difference between
the left and right contentRevision (if init has been called)Copyright © 2003-2014 Sakai Project. All Rights Reserved.