InvalidTableBehaviour
.@Deprecated public enum InvalidCalsTableBehaviour extends java.lang.Enum<InvalidCalsTableBehaviour>
Specifies the behaviour to use when inputs contain invalid CALS tables.
Some of the processing used for CALS table comparison makes the assumption that the tables conform to the CALS 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
Deprecated.
Compare tables as 'plain' XML.
|
FAIL
Deprecated.
Throw an Exception when invalid CALS tables are encountered.
|
PROPAGATE_UP
Deprecated.
Propagate the changes to the
<tgroup> level of the table. |
Modifier and Type | Method and Description |
---|---|
static InvalidCalsTableBehaviour |
getInvalidCalsTableBehaviour(java.lang.String val)
Deprecated.
Returns a
InvalidCalsTableBehaviour object base on the supplied String value. |
java.lang.String |
toString()
Deprecated.
The camel case string form of each of the enumerated type constants.
|
static InvalidCalsTableBehaviour |
valueOf(java.lang.String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static InvalidCalsTableBehaviour[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InvalidCalsTableBehaviour FAIL
FilterProcessingException
with
an underlying cause of XPathException
.public static final InvalidCalsTableBehaviour PROPAGATE_UP
<tgroup>
level of the table. 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 InvalidCalsTableBehaviour COMPARE_AS_XML
Compare tables as 'plain' XML. Rather than using the tailored CALS table processing, compare the tables as XML.
WARNING: This may lead to table results that cannot be rendered successfully.
public static InvalidCalsTableBehaviour[] values()
for (InvalidCalsTableBehaviour c : InvalidCalsTableBehaviour.values()) System.out.println(c);
public static InvalidCalsTableBehaviour 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<InvalidCalsTableBehaviour>
public static InvalidCalsTableBehaviour getInvalidCalsTableBehaviour(java.lang.String val)
Returns a InvalidCalsTableBehaviour
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 InvalidCalsTableBehaviour
value or null
to get the default valueInvalidCalsTableBehaviour
instance corresponding to the parameter, or null if the value is invalidCopyright © 2001-2018 DeltaXML Ltd. All Rights Reserved.