Enum Class CalsColumnKeyingMode
- All Implemented Interfaces:
Serializable,Comparable<CalsColumnKeyingMode>,Constable
Specifies the column keying mode used to match CALS columns when table processing is enabled.
Different column keying modes allow for more precise CALS table column alignment.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic CalsColumnKeyingModeReturns aCalsColumnKeyingModeobject based on the supplied String value.toString()The string form of each of the enumerated type constants.static CalsColumnKeyingModeReturns the enum constant of this class with the specified name.static CalsColumnKeyingMode[]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
-
AUTO
DocumentComparator manages the entire keying process automatically. If desired this mode also allows for user-defined column keys in the input files.
-
COLNAME
DocumentComparator matches table columns based on colname attribute declared as a part of colspec. If colname for a particular column is missing this column is NOT explicitly matched with its counterpart in B version.
This mode throws an exception if user-defined keys are found in the input files.
-
POSITION
DocumentComparator matches table columns based on their position. Indexing starts from 1 and the maximum position is defined by the number of columns described by cols attribute.
This mode throws an exception if user-defined keys are found in the input files.
-
-
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 string form of each of the enumerated type constants.- Overrides:
toStringin classEnum<CalsColumnKeyingMode>- Returns:
- The string form of each of the enumerated type constants.
-
getColumnKeyingMode
Returns a
CalsColumnKeyingModeobject based 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 aCalsColumnKeyingModevalue ornullto get the default value- Returns:
- the
CalsColumnKeyingModeinstance corresponding to the parameter, or null if the value is invalid
-