Package com.deltaxml.htmlcompare
Class TableConfiguration
java.lang.Object
com.deltaxml.htmlcompare.TableConfiguration
Configuration object containing parameters that control how tables are compared.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the current value of the column keying mode parameter.Get the current value of the invalid table behaviour parameter.Get the current value of the validation level parameter.Get the current value of the warning report mode parameter.booleanGets whether Tables Comparison is enabled.booleanGets whether the order of table columns should be ignored during the comparison.booleanGet whether table column normalization takes place.voidSet the new value of the column keying mode parameter that controls how columns should be keyed and therefore compared.voidsetEnabled(boolean isEnabled) `* Sets whether to use Tables Comparison.voidsetIgnoreColumnOrder(boolean value) Sets whether column order in tables should be ignored, this can produce a superior result if the order of columns is unimportant.voidSets the new value of the invalid table behaviour parameter that controls what happens when invalid tables are encountered.voidsetNormalizeTableColumns(boolean value) Sets whether the table column normalization occurs.voidSets the new value of the validation level parameter that controls how strict to be when validating tables.voidSet the new value of the warning report mode parameter that controls where and how warnings should be output.
-
Constructor Details
-
TableConfiguration
public TableConfiguration()Create a newTableConfigurationobject.
-
-
Method Details
-
getInvalidTableBehaviour
Get the current value of the invalid table behaviour parameter.- Returns:
- the current value of the invalid table behaviour parameter.
- See Also:
-
setInvalidTableBehaviour
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
Get the current value of the validation level parameter.- Returns:
- the current value of the validation level parameter.
- See Also:
-
setValidationLevel
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
Get the current value of the warning report mode parameter.- Returns:
- the current value of the warning report mode parameter.
- See Also:
-
setWarningReportMode
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
Get the current value of the column keying mode parameter.- Returns:
- the current value of the column keying mode parameter.
- See Also:
-
setColumnKeyingMode
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.
-