Enum Class CalsColumnKeyingMode

java.lang.Object
java.lang.Enum<CalsColumnKeyingMode>
com.deltaxml.mergecommon.config.CalsColumnKeyingMode
All Implemented Interfaces:
Serializable, Comparable<CalsColumnKeyingMode>, Constable

public enum CalsColumnKeyingMode extends Enum<CalsColumnKeyingMode>

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.

  • Enum Constant Details

    • AUTO

      public static final CalsColumnKeyingMode AUTO

      DocumentComparator manages the entire keying process automatically. If desired this mode also allows for user-defined column keys in the input files.

    • COLNAME

      public static final CalsColumnKeyingMode 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

      public static final CalsColumnKeyingMode 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

      public static CalsColumnKeyingMode[] 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

      public static CalsColumnKeyingMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      The string form of each of the enumerated type constants.
      Overrides:
      toString in class Enum<CalsColumnKeyingMode>
      Returns:
      The string form of each of the enumerated type constants.
    • getColumnKeyingMode

      public static CalsColumnKeyingMode getColumnKeyingMode(String val)

      Returns a CalsColumnKeyingMode object 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 a CalsColumnKeyingMode value or null to get the default value
      Returns:
      the CalsColumnKeyingMode instance corresponding to the parameter, or null if the value is invalid