public class CalsTableConfiguration
extends java.lang.Object
Specifies configuration options for CALS table comparison. These configuration options can be specified on a
DocumentComparator
to configure its behaviour when comparing tables.
Constructor and Description |
---|
CalsTableConfiguration()
Constructs a new
CalsTableConfiguration instance. |
Modifier and Type | Method and Description |
---|---|
CalsColumnKeyingMode |
getCalsColumnKeyingMode()
Returns the
CalsColumnKeyingMode currently in use when comparing CALS tables. |
ColumnKeyingMode |
getColumnKeyingMode()
Returns the
ColumnKeyingMode currently in use when comparing CALS tables. |
InvalidTableBehaviour |
getInvalidTableBehaviour()
Returns the current behaviour in use when inputs contain invalid CALS tables.
|
ValidationLevel |
getValidationLevel()
Returns the
ValidationLevel current in use when validating CALS tables. |
WarningReportMode |
getWarningReportMode()
Returns the
WarningReportMode in use when invalid CALS tables are encountered. |
boolean |
isIgnoreColumnOrder()
Determines whether ignoring CALS table column order is enabled.
|
boolean |
isMarkTableCellSpanExtentChanges()
Returns true if markTableCellSpanExtentChanges feature is on, otherwise false.
|
boolean |
isProcessTables()
Determines whether CALS table processing is enabled.
|
void |
setCalsColumnKeyingMode(CalsColumnKeyingMode mode)
Sets the
CalsColumnKeyingMode to use when comparing CALS tables. |
void |
setColumnKeyingMode(ColumnKeyingMode mode)
Sets the
ColumnKeyingMode to use when comparing CALS tables. |
void |
setIgnoreColumnOrder(boolean ignoreColumnOrder)
Sets whether the
DocumentComparator should ignore CALS table column order. |
void |
setInvalidTableBehaviour(InvalidTableBehaviour behaviour)
Sets the behaviour to use when inputs contain invalid CALS tables.
|
void |
setMarkTableCellSpanExtentChanges(boolean value)
Sets the markTableCellSpanExtentChanges feature on or off.
|
void |
setProcessTables(boolean value)
Sets whether the
DocumentComparator should process CALS tables. |
void |
setValidationLevel(ValidationLevel level)
Sets the
ValidationLevel to use for CALS table validation. |
void |
setWarningReportMode(WarningReportMode mode)
Specifies how CALS table invalidity warnings should be reported.
|
public CalsTableConfiguration()
CalsTableConfiguration
instance.public void setProcessTables(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 isProcessTables()
Determines whether CALS table processing is enabled.
public void setInvalidTableBehaviour(InvalidTableBehaviour behaviour)
behaviour
- an instance of InvalidTableBehaviour
specifying the behaviour to use when invalid CALS tables are
encounteredpublic InvalidTableBehaviour getInvalidTableBehaviour()
InvalidTableBehaviour
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 setValidationLevel(ValidationLevel level)
Sets the ValidationLevel
to use for CALS table validation.
A value of ValidationLevel.STRICT
will cause the InvalidTableBehaviour
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 getValidationLevel()
Returns the ValidationLevel
current in use when validating CALS tables.
ValidationLevel
describing the level in usepublic void setIgnoreColumnOrder(boolean ignoreColumnOrder)
Sets whether the DocumentComparator
should ignore CALS table column order.
ignoreColumnOrder
- whether to ignore CALS table column orderpublic boolean isIgnoreColumnOrder()
Determines whether ignoring CALS table column order is enabled.
public void setColumnKeyingMode(ColumnKeyingMode mode)
Sets the ColumnKeyingMode
to use when comparing CALS tables.
mode
- an instance of ColumnKeyingMode
describing the keying mode to usepublic ColumnKeyingMode getColumnKeyingMode()
Returns the ColumnKeyingMode
currently in use when comparing CALS tables.
ColumnKeyingMode
describing the keying mode in usepublic void setCalsColumnKeyingMode(CalsColumnKeyingMode mode)
Sets the CalsColumnKeyingMode
to use when comparing CALS tables.
mode
- an instance of ColumnKeyingMode
describing the keying mode to usepublic CalsColumnKeyingMode getCalsColumnKeyingMode()
Returns the CalsColumnKeyingMode
currently in use when comparing CALS tables.
CalsColumnKeyingMode
describing the keying mode in usepublic void setMarkTableCellSpanExtentChanges(boolean value)
value
- A boolean value to set this feature.public boolean isMarkTableCellSpanExtentChanges()