OpenAPI 1.0

com.aquafold.openapi.compare
Interface AQCompareOptions


public interface AQCompareOptions

Provides configuration options for a line-by-line compare operations.


Method Summary
 boolean isIgnoreBlankLines()
          Returns true if the comparison operation will ignore blank lines.
 boolean isIgnoreCase()
          Returns true if the comparison operation will ignore case.
 boolean isTrimLeft()
          Returns trim-left option value.
 boolean isTrimMiddle()
          Returns trim-middle option value.
 boolean isTrimRight()
          Returns trim-right option value.
 void setIgnoreBlankLines(boolean enable)
          If true, the comparison will ignore blank lines.
 void setIgnoreCase(boolean enable)
          If true, the comparison will ignore the case.
 void setIgnoreWhitespace(boolean enable)
          If true, the comparison will ignore whitespace.
 void setTrimLeft(boolean enable)
          If true, trims the whitespace on the left side of each line before comparison.
 void setTrimMiddle(boolean enable)
          If true, reduces any number of whitespace symbols within each line to a single space character before comparison.
 void setTrimRight(boolean enable)
          If true, trims the whitespace on the right side of each line before comparison.
 

Method Detail

setTrimLeft

void setTrimLeft(boolean enable)
If true, trims the whitespace on the left side of each line before comparison. Default value = false.

Parameters:
enable -

isTrimLeft

boolean isTrimLeft()
Returns trim-left option value.


setTrimRight

void setTrimRight(boolean enable)
If true, trims the whitespace on the right side of each line before comparison. Default value = false.

Parameters:
enable -

isTrimRight

boolean isTrimRight()
Returns trim-right option value.


setTrimMiddle

void setTrimMiddle(boolean enable)
If true, reduces any number of whitespace symbols within each line to a single space character before comparison. Default value = false.

Parameters:
enable -

isTrimMiddle

boolean isTrimMiddle()
Returns trim-middle option value.


setIgnoreCase

void setIgnoreCase(boolean enable)
If true, the comparison will ignore the case. Default value = false.

Parameters:
enable -

isIgnoreCase

boolean isIgnoreCase()
Returns true if the comparison operation will ignore case.


setIgnoreBlankLines

void setIgnoreBlankLines(boolean enable)
If true, the comparison will ignore blank lines. Default value = false.

Parameters:
enable -

isIgnoreBlankLines

boolean isIgnoreBlankLines()
Returns true if the comparison operation will ignore blank lines.


setIgnoreWhitespace

void setIgnoreWhitespace(boolean enable)
If true, the comparison will ignore whitespace. This method is equivalent to calling

setTrimLeft(true);
setTrimRight(true);
setTrimMiddle(true);
setIgnoreBlankLines(true);

Parameters:
enable -

OpenAPI 1.0


Copyright © 2010 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.