Enum Class InvalidTableBehaviour
- All Implemented Interfaces:
Serializable,Comparable<InvalidTableBehaviour>,Constable
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.
- Since:
- 10.2
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCompare tables as 'plain' XML.Throw an Exception when invalid tables are encountered.Propagate the changes to the<tgroup>or<table>level of the CALS or HTML table respectively. -
Method Summary
Modifier and TypeMethodDescriptionstatic InvalidTableBehaviourReturns aInvalidTableBehaviourobject base on the supplied String value.toString()The camel case string form of each of the enumerated type constants.static InvalidTableBehaviourReturns the enum constant of this class with the specified name.static InvalidTableBehaviour[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
FAIL
Throw an Exception when invalid tables are encountered. The Exception will be aFilterProcessingExceptionwith an underlying cause ofXPathException. -
PROPAGATE_UP
Propagate the changes to the<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> -
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.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
toString
The camel case string form of each of the enumerated type constants. Here, the string for an enumeration constant of the form 'FIRST_SECOND_THIRD' is 'firstSecondThird'.- Overrides:
toStringin classEnum<InvalidTableBehaviour>- Returns:
- The camel case string form of each of the enumerated type constants.
-
getInvalidTableBehaviour
Returns a
InvalidTableBehaviourobject base on the supplied String value.This method should not be used under normal circumstances, enum instance values should be used instead.
- Parameters:
val- a String representation of aInvalidTableBehaviourvalue ornullto get the default value- Returns:
- the
InvalidTableBehaviourinstance corresponding to the parameter, or null if the value is invalid
-