public enum InvalidTableBehaviour extends java.lang.Enum<InvalidTableBehaviour>
Specifies the behaviour 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 behaviour 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(java.lang.String val)
Returns a
InvalidTableBehaviour object base on the supplied String value. |
java.lang.String |
toString()
The camel case string form of each of the enumerated type constants.
|
static InvalidTableBehaviour |
valueOf(java.lang.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'> <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.
public static InvalidTableBehaviour[] values()
for (InvalidTableBehaviour c : InvalidTableBehaviour.values()) System.out.println(c);
public static InvalidTableBehaviour valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<InvalidTableBehaviour>
public static InvalidTableBehaviour getInvalidTableBehaviour(java.lang.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 invalid