org.xwiki.diff.display
Class UnifiedDiffConfiguration<E,F>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,Object>
          extended by org.xwiki.diff.DiffConfiguration<F>
              extended by org.xwiki.diff.display.UnifiedDiffConfiguration<E,F>
Type Parameters:
E - the type of elements that are compared to produce the first level diff
F - 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

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
UnifiedDiffConfiguration()
           
 
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
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

UnifiedDiffConfiguration

public UnifiedDiffConfiguration()
Method Detail

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.