Class TableConfiguration

java.lang.Object
com.deltaxml.htmlcompare.TableConfiguration

public class TableConfiguration extends Object
Configuration object containing parameters that control how tables are compared.
  • Constructor Details

  • Method Details

    • getInvalidTableBehaviour

      public InvalidTableBehaviour getInvalidTableBehaviour()
      Get the current value of the invalid table behaviour parameter.
      Returns:
      the current value of the invalid table behaviour parameter.
      See Also:
    • setInvalidTableBehaviour

      public void setInvalidTableBehaviour(InvalidTableBehaviour value)
      Sets the new value of the invalid table behaviour parameter that controls what happens when invalid tables are encountered.
      Parameters:
      value - the new value of the invalid table behaviour parameter.
      See Also:
    • getValidationLevel

      public ValidationLevel getValidationLevel()
      Get the current value of the validation level parameter.
      Returns:
      the current value of the validation level parameter.
      See Also:
    • setValidationLevel

      public void setValidationLevel(ValidationLevel value)
      Sets the new value of the validation level parameter that controls how strict to be when validating tables.
      Parameters:
      value - the new value of the validation level parameter.
      See Also:
    • getWarningReportMode

      public WarningReportMode getWarningReportMode()
      Get the current value of the warning report mode parameter.
      Returns:
      the current value of the warning report mode parameter.
      See Also:
    • setWarningReportMode

      public void setWarningReportMode(WarningReportMode value)
      Set the new value of the warning report mode parameter that controls where and how warnings should be output.
      Parameters:
      value - the new value of the warning report mode parameter.
      See Also:
    • getColumnKeyingMode

      public ColumnKeyingMode getColumnKeyingMode()
      Get the current value of the column keying mode parameter.
      Returns:
      the current value of the column keying mode parameter.
      See Also:
    • setColumnKeyingMode

      public void setColumnKeyingMode(ColumnKeyingMode value)
      Set the new value of the column keying mode parameter that controls how columns should be keyed and therefore compared.
      Parameters:
      value - the new value of the column keying mode parameter.
      See Also:
    • isNormalizeTableColumns

      public boolean isNormalizeTableColumns()

      Get whether table column normalization takes place.

      Returns:
      a boolean describing the enabled state of normalization of table columns.
      See Also:
    • setNormalizeTableColumns

      public void setNormalizeTableColumns(boolean value)

      Sets whether the table column normalization occurs.

      This setting is recommended when there is a difference between inputs of how columns are specified, e.g. if one uses just <colgroup> and another uses <col> without <colgroup>.

      Parameters:
      value - whether to normalize HTML Table column specification
    • isIgnoreColumnOrder

      public boolean isIgnoreColumnOrder()
      Gets whether the order of table columns should be ignored during the comparison.
      Returns:
      whether the order of table columns is ignored.
      See Also:
    • setIgnoreColumnOrder

      public void setIgnoreColumnOrder(boolean value)
      Sets whether column order in tables should be ignored, this can produce a superior result if the order of columns is unimportant.
      Parameters:
      value - whether column order should be ignored in tables.
    • setEnabled

      public void setEnabled(boolean isEnabled)
      `* Sets whether to use Tables Comparison.
      Parameters:
      isEnabled - sets whether to use Tables comparison.
    • isEnabled

      public boolean isEnabled()
      Gets whether Tables Comparison is enabled.
      Returns:
      a boolean showing whether Tables Comparison is enabled.