CalsTableConfiguration
and
HtmlTableConfiguration
. These new classes should be used instead.@Deprecated
public class TableConfiguration
extends java.lang.Object
Specifies configuration options for table comparison. These configuration options can be specified on a
DocumentComparator
to configure its behaviour when comparing tables.
Constructor and Description |
---|
TableConfiguration()
Deprecated.
Constructs a new
TableConfiguration instance. |
Modifier and Type | Method and Description |
---|---|
ValidationLevel |
getCalsValidationLevel()
Deprecated.
Returns the
ValidationLevel current in use when validating CALS tables. |
InvalidCalsTableBehaviour |
getInvalidCalsTableBehaviour()
Deprecated.
Returns the current behaviour in use when inputs contain invalid CALS tables.
|
WarningReportMode |
getWarningReportMode()
Deprecated.
Returns the
WarningReportMode in use when invalid CALS tables are encountered. |
boolean |
isProcessCalsTables()
Deprecated.
Determines whether CALS table processing is enabled.
|
boolean |
isProcessHtmlTables()
Deprecated.
Determines whether HTML table processing is enabled.
|
void |
setCalsValidationLevel(ValidationLevel level)
Deprecated.
Sets the
ValidationLevel to use for CALS table validation. |
void |
setInvalidCalsTableBehaviour(InvalidCalsTableBehaviour behaviour)
Deprecated.
Sets the behaviour to use when inputs contain invalid CALS tables.
|
void |
setProcessCalsTables(boolean value)
Deprecated.
Sets whether the
DocumentComparator should process CALS tables. |
void |
setProcessHtmlTables(boolean value)
Deprecated.
Sets whether the
DocumentComparator should process HTML tables. |
void |
setWarningReportMode(WarningReportMode mode)
Deprecated.
Specifies how CALS table invalidity warnings should be reported.
|
public TableConfiguration()
TableConfiguration
instance.public void setProcessCalsTables(boolean value)
Sets whether the DocumentComparator
should process CALS tables.
CALS table processing is recommended as it will perform sophisticated processing when comparing two CALS tables to ensure that the resulting CALS table is valid.
value
- whether to use CALS table processingpublic boolean isProcessCalsTables()
Determines whether CALS table processing is enabled.
public void setProcessHtmlTables(boolean value)
Sets whether the DocumentComparator
should process HTML tables.
HTML table processing is recommended as it will perform sophisticated processing when comparing two HTML tables to ensure that the resulting HTML table is valid.
value
- whether to use HTML table processingpublic boolean isProcessHtmlTables()
Determines whether HTML table processing is enabled.
public void setInvalidCalsTableBehaviour(InvalidCalsTableBehaviour behaviour)
behaviour
- an instance of InvalidCalsTableBehaviour
specifying the behaviour to use when invalid CALS tables
are encounteredpublic InvalidCalsTableBehaviour getInvalidCalsTableBehaviour()
InvalidCalsTableBehaviour
describing the behaviour in usepublic void setWarningReportMode(WarningReportMode mode)
mode
- the WarningReportMode
to use when invalid CALS tables are encounteredpublic WarningReportMode getWarningReportMode()
WarningReportMode
in use when invalid CALS tables are encountered.WarningReportMode
describing the reporting mode in usepublic void setCalsValidationLevel(ValidationLevel level)
Sets the ValidationLevel
to use for CALS table validation.
A value of ValidationLevel.STRICT
will cause the InvalidCalsTableBehaviour
mode to be used for any CALS
invalidity. A value of ValidationLevel.RELAXED
means that invalidities which are known to have no effect on CALS
processing will not prevent CALS processing from running. N.B. Warnings will be reported according to the
WarningReportMode
regardless of the setting used here.
level
- an instance of ValidationLevel
describing the level to usepublic ValidationLevel getCalsValidationLevel()
Returns the ValidationLevel
current in use when validating CALS tables.
ValidationLevel
describing the level in useCopyright © 2001-2018 DeltaXML Ltd. All Rights Reserved.