com.alkacon.diff
Class DiffConfiguration

java.lang.Object
  extended by com.alkacon.diff.DiffConfiguration
All Implemented Interfaces:
I_DiffConfiguration

public class DiffConfiguration
extends java.lang.Object
implements I_DiffConfiguration

Default Diff operation configuration class.


Constructor Summary
DiffConfiguration(int lines, java.lang.String messageBundle, java.lang.String messageKey, java.util.Locale locale)
          Creates a new configuration object.
 
Method Summary
 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

DiffConfiguration

public DiffConfiguration(int lines,
                         java.lang.String messageBundle,
                         java.lang.String messageKey,
                         java.util.Locale locale)
Creates a new configuration object.

Parameters:
lines - the lines to show before skipping
messageBundle - a resource bundle name to get the localized messages from
messageKey - the key for a message like: '({0} equal skipped lines)'
locale - the locale to use
Method Detail

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.