org.xwiki.diff.display
Class UnifiedDiffConfiguration<E,F>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,Object>
org.xwiki.diff.DiffConfiguration<F>
org.xwiki.diff.display.UnifiedDiffConfiguration<E,F>
- Type Parameters:
E
- the type of elements that are compared to produce the first level diffF
- the type of sub-elements that can be compared to produce the second level diff when an element is modified
- All Implemented Interfaces:
- Serializable, Cloneable, Map<String,Object>
public class UnifiedDiffConfiguration<E,F>
- extends DiffConfiguration<F>
Configuration for UnifiedDiffDisplayer
.
- Since:
- 4.1RC1
- Version:
- $Id: 3c9d1a2920cdfef0b720faddf63635c2660e027a $
- See Also:
- Serialized Form
Method Summary |
int |
getContextSize()
|
Splitter<E,F> |
getSplitter()
|
void |
setContextSize(int contextSize)
Sets the number of unmodified elements to display before and after a chunk of modified elements. |
void |
setSplitter(Splitter<E,F> splitter)
Sets The object used to split the modified elements into sub-elements in order to produce a more detailed diff. |
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
UnifiedDiffConfiguration
public UnifiedDiffConfiguration()
getContextSize
public int getContextSize()
- Returns:
- the number of unmodified elements to display before and after a chunk of modified elements
setContextSize
public void setContextSize(int contextSize)
- Sets the number of unmodified elements to display before and after a chunk of modified elements.
- Parameters:
contextSize
- the context size
getSplitter
public Splitter<E,F> getSplitter()
- Returns:
- the object used to split the modified elements into sub-elements in order to produce a more detailed diff
setSplitter
public void setSplitter(Splitter<E,F> splitter)
- Sets The object used to split the modified elements into sub-elements in order to produce a more detailed diff.
- Parameters:
splitter
- the splitter
Copyright © 2004-2013 XWiki. All Rights Reserved.