|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gentics.contentnode.rest.model.request.DiffRequest
public class DiffRequest
Class representing a diff request sent to DiffResource. Encapsulates request data.
Field Summary | |
---|---|
protected String |
changeTemplate
Template for rendering changes |
protected String |
content1
First content to be diff'ed |
protected String |
content2
Second content to be diff'ed |
static String |
DEFAULT_CHANGE_TEMPLATE
Default template for changes |
static String |
DEFAULT_INSERT_TEMPLATE
Default template for inserts |
static String |
DEFAULT_REMOVE_TEMPALTE
Default template for removals |
static int |
DEFAULT_WORDS_AFTER
Default number of words after the change to be shown |
static int |
DEFAULT_WORDS_BEFORE
Default number of words before the change to be shown |
protected String |
ignoreRegex
Regex of content to be ignored while diffing |
protected String |
insertTemplate
Template for rendering inserts |
protected String |
removeTemplate
Template for rendering removals |
protected Integer |
wordsAfter
Number of words to be shown after the diff |
protected Integer |
wordsBefore
Number of words to be shown before the diff |
Constructor Summary | |
---|---|
DiffRequest()
Create an empty instance (Used by JAXB) |
Method Summary | |
---|---|
String |
getChangeTemplate()
Return the change template. |
String |
getContent1()
Return the content1. |
String |
getContent2()
Return the content2. |
String |
getIgnoreRegex()
Return the ignore regex that will be used to sanitize the content before the diff is invoked. |
String |
getInsertTemplate()
Return the insert template. |
String |
getRemoveTemplate()
Return the remove template. |
Integer |
getWordsAfter()
Return the amount of words that should be displayed after the actual diff. |
Integer |
getWordsBefore()
Return the number of words before the change to be shown. |
void |
setChangeTemplate(String changeTemplate)
Set the change template. |
void |
setContent1(String content1)
Set the content1. |
void |
setContent2(String content2)
Set the content2. |
void |
setIgnoreRegex(String ignoreRegex)
Set the ignore regex that will be used to sanitize the content before the diff is invoked. |
void |
setInsertTemplate(String insertTemplate)
Set the insert template for the diff request. |
void |
setRemoveTemplate(String removeTemplate)
Set the remove template. |
void |
setWordsAfter(Integer wordsAfter)
Set the amount of words that should be displayed after the actual diff. |
void |
setWordsBefore(Integer wordsBefore)
Set the amount of words that should be displayed before the actual diff. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_CHANGE_TEMPLATE
public static final String DEFAULT_INSERT_TEMPLATE
public static final String DEFAULT_REMOVE_TEMPALTE
public static final int DEFAULT_WORDS_BEFORE
public static final int DEFAULT_WORDS_AFTER
protected String content1
protected String content2
protected String ignoreRegex
protected String changeTemplate
protected String insertTemplate
protected String removeTemplate
protected Integer wordsBefore
protected Integer wordsAfter
Constructor Detail |
---|
public DiffRequest()
Method Detail |
---|
public String getContent1()
public void setContent1(String content1)
content1
- the content1 to setpublic String getContent2()
public void setContent2(String content2)
content2
- the content2 to setpublic String getIgnoreRegex()
public void setIgnoreRegex(String ignoreRegex)
ignoreRegex
- the ignoreRegex to setpublic String getChangeTemplate()
The following default template will be used when no template has been set:
<del class='diff modified gtx-diff'>$remove</del><ins class='diff modified gtx-diff'>$insert</ins>
public void setChangeTemplate(String changeTemplate)
The following default template will be used when no template has been set:
<del class='diff modified gtx-diff'>$remove</del><ins class='diff modified gtx-diff'>$insert</ins>
changeTemplate
- the template to setpublic String getInsertTemplate()
The following default template will be used when no template has been set:
<ins class='diff modified gtx-diff'>$insert</ins>
public void setInsertTemplate(String insertTemplate)
The following default template will be used when no template has been set:
<ins class='diff modified gtx-diff'>$insert</ins>
insertTemplate
- the template to setpublic String getRemoveTemplate()
The following default template will be used when no template has been set:
<del class='diff modified gtx-diff'>$remove</del>
public void setRemoveTemplate(String removeTemplate)
The following default template will be used when no template has been set:
<del class='diff modified gtx-diff'>$remove</del>
removeTemplate
- the removeTemplate to setpublic Integer getWordsBefore()
public void setWordsBefore(Integer wordsBefore)
wordsBefore
- the wordsBefore to setpublic Integer getWordsAfter()
public void setWordsAfter(Integer wordsAfter)
wordsAfter
- the wordsAfter to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |