Class FormattingConfiguration

java.lang.Object
com.deltaxml.htmlcompare.FormattingConfiguration

public class FormattingConfiguration extends Object
Configuration object containing parameters related to formatting.
  • Field Details

    • DEFAULT_FORMATTING_ELEMENTS

      public static final String 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

  • Method Details

    • getFormattingElements

      public String 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

      public void setFormattingElements(String value)

      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.