Package org.tmatesoft.svn.core.wc
Class SVNDiffOptions
java.lang.Object
org.tmatesoft.svn.core.wc.SVNDiffOptions
public class SVNDiffOptions
extends java.lang.Object
The SVNDiffOptions class is used to contain some rules for controlling the
result of comparing two files. Such rules are used in diff/merge/annotate operations
when it's necessary to say whether a file should be or should not be considered as
changed.
- Since:
- 1.2
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate booleanprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new diff options object.SVNDiffOptions(boolean ignoreAllWhitespace, boolean ignoreAmountOfWhiteSpace, boolean ignoreEOLStyle) Creates a new diff options object. -
Method Summary
Modifier and TypeMethodDescriptionbooleanSays whether all whitespaces must be ignored while comparing files.booleanSays whether amont of whitespaces must be ignored while comparing files.booleanSays whether eol style must be ignored while comparing files.booleanNOTE: not supported currentlyvoidsetIgnoreAllWhitespace(boolean isIgnoreAllWhitespace) Sets whether all whitespaces must be ignored while comparing files.voidsetIgnoreAmountOfWhitespace(boolean isIgnoreAmountOfWhitespace) Sets whether number of whitespaces must be ignored while comparing files.voidsetIgnoreEOLStyle(boolean isIgnoreEOLStyle) Sets whether eol style must be ignored while comparing files.voidsetShowCFunction(boolean showCFunction) NOTE: not supported currentlyjava.util.CollectionReturns a collection containing diff options asStringobject.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
myIsIgnoreAllWhitespace
private boolean myIsIgnoreAllWhitespace -
myIsIgnoreAmountOfWhitespace
private boolean myIsIgnoreAmountOfWhitespace -
myIsIgnoreEOLStyle
private boolean myIsIgnoreEOLStyle -
myIsShowCFunction
private boolean myIsShowCFunction
-
-
Constructor Details
-
SVNDiffOptions
public SVNDiffOptions()Creates a new diff options object. Equivalent toSVNDiffOptions(false, false, false). -
SVNDiffOptions
public SVNDiffOptions(boolean ignoreAllWhitespace, boolean ignoreAmountOfWhiteSpace, boolean ignoreEOLStyle) Creates a new diff options object.- Parameters:
ignoreAllWhitespace- controls whether whitespace differences must be ignoredignoreAmountOfWhiteSpace- controls whether number of whitespaces must be ignoredignoreEOLStyle- controls whether eol-marker differences must be ignored
-
-
Method Details
-
isIgnoreAllWhitespace
public boolean isIgnoreAllWhitespace()Says whether all whitespaces must be ignored while comparing files.- Returns:
- true if ignored, otherwise false
-
setIgnoreAllWhitespace
public void setIgnoreAllWhitespace(boolean isIgnoreAllWhitespace) Sets whether all whitespaces must be ignored while comparing files.- Parameters:
isIgnoreAllWhitespace- controls whether whitespaces are to be ignored
-
isIgnoreAmountOfWhitespace
public boolean isIgnoreAmountOfWhitespace()Says whether amont of whitespaces must be ignored while comparing files.- Returns:
- true if ignored, otherwise false
-
setIgnoreAmountOfWhitespace
public void setIgnoreAmountOfWhitespace(boolean isIgnoreAmountOfWhitespace) Sets whether number of whitespaces must be ignored while comparing files.- Parameters:
isIgnoreAmountOfWhitespace- controls whether number of whitespaces is to be ignored
-
isIgnoreEOLStyle
public boolean isIgnoreEOLStyle()Says whether eol style must be ignored while comparing files.- Returns:
- true if ignored, otherwise false
-
setIgnoreEOLStyle
public void setIgnoreEOLStyle(boolean isIgnoreEOLStyle) Sets whether eol style must be ignored while comparing files.- Parameters:
isIgnoreEOLStyle- controls whether eol style is to be ignored
-
isShowCFunction
public boolean isShowCFunction()NOTE: not supported currently -
setShowCFunction
public void setShowCFunction(boolean showCFunction) NOTE: not supported currently -
toOptionsCollection
public java.util.Collection toOptionsCollection()Returns a collection containing diff options asStringobject. IfisIgnoreAllWhitespace()is true, "-w" is added to the result. IfisIgnoreAmountOfWhitespace()is true, "-b" is added to the result. IfisIgnoreEOLStyle()is true, "--ignore-eol-style" is added to the result.- Returns:
- collection with
Stringrepresentations of diff options - Since:
- 1.2.0
-