Package com.deltaxml.htmlcompare
Class ComparisonTypeConfiguration
java.lang.Object
com.deltaxml.htmlcompare.ComparisonTypeConfiguration
Configuration object containing parameters that control how text is compared.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets whether the character by character parameter is toggled on or off.booleanGets whether the compare using ids parameter is toggled on or off.voidsetCharacterByCharacter(boolean value) Sets whether the character by character parameter is toggled on (true) or off (false).voidsetCompareUsingIds(boolean value) Sets whether the compare using ids parameter is toggled on (true) or off (false).
-
Constructor Details
-
ComparisonTypeConfiguration
public ComparisonTypeConfiguration()Create a newComparisonTypeConfigurationobject.
-
-
Method Details
-
isCharacterByCharacter
public boolean isCharacterByCharacter()Gets whether the character by character parameter is toggled on or off. Character by character comparison shows finer detailed changes within individual words.E.g. If "simple" in the input A document has become "sample" in the input B document,
With CBC OFF: <A>simple</A> <B>sample</B> With CBC ON: s<A>i</A><B>a</B>mple
- Returns:
- the state of the character by character parameter.
-
setCharacterByCharacter
public void setCharacterByCharacter(boolean value) Sets whether the character by character parameter is toggled on (true) or off (false). Character by character comparison shows finer detailed changes within individual words.E.g. If "simple" in the input A document has become "sample" in the input B document,
With CBC OFF: <A>simple</A> <B>sample</B> With CBC ON: s<A>i</A><B>a</B>mple
- Parameters:
value- the value to set the character by character parameter to.
-
isCompareUsingIds
public boolean isCompareUsingIds()Gets whether the compare using ids parameter is toggled on or off.- Returns:
- the state of the compare using ids parameter.
-
setCompareUsingIds
public void setCompareUsingIds(boolean value) Sets whether the compare using ids parameter is toggled on (true) or off (false).- Parameters:
value- the value to set the compare using ids parameter to.
-