Package com.deltaxml.htmlcompare
Class FormattingConfiguration
java.lang.Object
com.deltaxml.htmlcompare.FormattingConfiguration
Configuration object containing parameters related to formatting.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe default formatting elements used by HTML Compare. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets a list of the configured formatting elements.booleanGets the value of the ignore formatting elements parameter.booleanGets the value of the retain comments parameter.voidsetFormattingElements(String value) Sets the list of formatting elements to use.voidsetIgnoreFormattingElements(boolean value) Sets the value of the ignore formatting elements parameter.voidsetRetainComments(boolean value) Sets the value of the retain comments parameter.
-
Field Details
-
DEFAULT_FORMATTING_ELEMENTS
The default formatting elements used by HTML Compare.
Provided to simplify creating subsets or resetting to the default.
- See Also:
-
-
Constructor Details
-
FormattingConfiguration
public FormattingConfiguration()Create a newFormattingConfigurationobject.
-
-
Method Details
-
getFormattingElements
Gets a list of the configured formatting elements.
This controls which HTML elements are not marked as structural changes.- Returns:
- a comma separated list of formatting elements
-
setFormattingElements
Sets the list of formatting elements to use.
This controls which HTML elements are not marked as structural changes.- Parameters:
value- a comma separated list of elements that should be configured as formatting elements.
-
isIgnoreFormattingElements
public boolean isIgnoreFormattingElements()Gets the value of the ignore formatting elements parameter.
If true, any formatting elements, and ones specified using the formatting elements parameter, will not show any sort of changes (addition, deletion, modified).- Returns:
- the value of the ignore formatting elements parameter.
-
setIgnoreFormattingElements
public void setIgnoreFormattingElements(boolean value) Sets the value of the ignore formatting elements parameter.
If set to true, any formatting elements, and ones specified using the formatting elements parameter, will not show any sort of changes (addition, deletion, modified).- Parameters:
value- the value to set the ignore formatting elements parameter to.
-
isRetainComments
public boolean isRetainComments()Gets the value of the retain comments parameter. If false, comments are removed from both inputs, if true comments from the B version are retained.- Returns:
- whether comments in the inputs are retained.
-
setRetainComments
public void setRetainComments(boolean value) Sets the value of the retain comments parameter. If false, comments are removed from both inputs, if true comments from the B version are retained.- Parameters:
value- whether comments in the inputs are retained.
-