public enum InvalidTableBehaviour extends Enum<InvalidTableBehaviour>
Specifies the behavior to use when inputs contain invalid tables.
Some of the processing used for table comparison makes the assumption that the tables conform to the specification. In order to avoid errors in this processing, the tables are first validated to ensure that it will work as expected. When tables are not valid, there are several options for the behavior that the comparison should take. This enum is used to specify the options.
Enum Constant and Description |
---|
COMPARE_AS_XML
Compare tables as 'plain' XML.
|
FAIL
Throw an Exception when invalid tables are encountered.
|
PROPAGATE_UP
Propagate the changes to the
<tgroup> or <table> level of the CALS or HTML table
respectively. |
Modifier and Type | Method and Description |
---|---|
static InvalidTableBehaviour |
getInvalidTableBehaviour(String val)
Returns a
InvalidTableBehaviour object base on the supplied String value. |
String |
toString()
The camel case string form of each of the enumerated type constants.
|
static InvalidTableBehaviour |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InvalidTableBehaviour[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InvalidTableBehaviour FAIL
FilterProcessingException
with an
underlying cause of XPathException
.public static final InvalidTableBehaviour PROPAGATE_UP
<tgroup>
or <table>
level of the CALS or HTML table
respectively. For example, rather than comparing the tables, each <tgroup>
version will be output in the
form
<table deltaxml:deltaV2='A!=B=C!=D'> <tgroup deltaxml:deltaV2='A'> ... </tgroup> <tgroup deltaxml:deltaV2='B'> ... </tgroup> </table>
public static final InvalidTableBehaviour COMPARE_AS_XML
Compare tables as 'plain' XML. Rather than using the tailored table processing, compare the tables as XML.
WARNING: This may lead to table results that cannot be rendered successfully.
Please note that new table processing algorithm currently do not support InvalidTableBehaviour.COMPARE_AS_XML. An exception will be thrown if this setting is used with new table processing.
public static InvalidTableBehaviour[] values()
for (InvalidTableBehaviour c : InvalidTableBehaviour.values()) System.out.println(c);
public static InvalidTableBehaviour valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<InvalidTableBehaviour>
public static InvalidTableBehaviour getInvalidTableBehaviour(String val)
Returns a InvalidTableBehaviour
object base on the supplied String value.
This method should not be used under normal circumstances, enum instance values should be used instead.
val
- a String representation of a InvalidTableBehaviour
value or null
to get the default valueInvalidTableBehaviour
instance corresponding to the parameter, or null if the value is invalidCopyright © 2023 Deltaman Group Ltd. All Rights Reserved.