com.alkacon.diff
Class TextDiffConfiguration

java.lang.Object
  extended by com.alkacon.diff.TextDiffConfiguration
All Implemented Interfaces:
I_DiffConfiguration, I_TextDiffConfiguration

public class TextDiffConfiguration
extends java.lang.Object
implements I_TextDiffConfiguration

Default Text Diff operation configuration class.


Constructor Summary
TextDiffConfiguration(I_DiffConfiguration baseConf, char marker)
          Creates a new configuration object.
 
Method Summary
 char getChangedCharMarker()
          Returns the marker to use to highlight changed chars.
 int getLinesBeforeSkip()
          Returns the number of lines to show before skipping.
 java.lang.String getMessageEqualLinesSkipped(int lines)
          Returns a localized message like '({0} equal lines skipped)'.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextDiffConfiguration

public TextDiffConfiguration(I_DiffConfiguration baseConf,
                             char marker)
Creates a new configuration object.

Parameters:
baseConf - base configuration
marker - the marker to highlight changed chars
Method Detail

getChangedCharMarker

public char getChangedCharMarker()
Description copied from interface: I_TextDiffConfiguration
Returns the marker to use to highlight changed chars.

Use ' ' to do not hightlight changed chars

Specified by:
getChangedCharMarker in interface I_TextDiffConfiguration
Returns:
the marker to use to highlight changed chars
See Also:
I_TextDiffConfiguration.getChangedCharMarker()

getLinesBeforeSkip

public int getLinesBeforeSkip()
Description copied from interface: I_DiffConfiguration
Returns the number of lines to show before skipping.

Use -1 to show all lines.

Specified by:
getLinesBeforeSkip in interface I_DiffConfiguration
Returns:
the number of lines to show before skipping
See Also:
I_DiffConfiguration.getLinesBeforeSkip()

getMessageEqualLinesSkipped

public java.lang.String getMessageEqualLinesSkipped(int lines)
Description copied from interface: I_DiffConfiguration
Returns a localized message like '({0} equal lines skipped)'.

Specified by:
getMessageEqualLinesSkipped in interface I_DiffConfiguration
Parameters:
lines - the number of skipped lines
Returns:
a localized message
See Also:
I_DiffConfiguration.getMessageEqualLinesSkipped(int)


Copyright © 2005-2011. All Rights Reserved.