Enum Class DefaultAttProcessingMode

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

public enum DefaultAttProcessingMode extends Enum<DefaultAttProcessingMode>

Represents the behaviour required when outputting defaulted attributes. Most behaviour is the same as PreservationProcessingMode with two extra options specific to defaulted attributes.

Please note that attribute changes are always output (unless handled elsewhere) regardless of whether the attribute was provided with a default value.

Since:
7.0
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Attributes that were default in version A should be default in the result.
    Attributes that were default in either input version should be default in the result.
    Use the default PreservationProcessingMode if the defaulted attribute items are being preserved, otherwise the same as CHANGE.
    Attributes that were default in version B should be default in the result.
    Attributes that were default in either input version should be default in the result.
    Leave the changes to the encoded defaultAttributeInfo in place, i.e. do nothing.
    If an attribute was provided with a default value in either of the inputs, it should be default in the result (provided that it has the same value).
    If an attribute was explicit in either of the inputs, it should be explicit in the result.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a DefaultAttProcessingMode object from the supplied String value if appropriate.
    The string representation of the enumerated type constants.
    Returns the enum constant of this class with the specified name.
    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

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • A

      public static final DefaultAttProcessingMode A
      Attributes that were default in version A should be default in the result.
    • B

      public static final DefaultAttProcessingMode B
      Attributes that were default in version B should be default in the result.
    • AB

      public static final DefaultAttProcessingMode AB
      Attributes that were default in either input version should be default in the result.
    • BA

      public static final DefaultAttProcessingMode BA
      Attributes that were default in either input version should be default in the result. (The same behaviour as AB).
    • CHANGE

      public static final DefaultAttProcessingMode CHANGE
      Leave the changes to the encoded defaultAttributeInfo in place, i.e. do nothing.
    • AUTOMATIC

      public static final DefaultAttProcessingMode AUTOMATIC
      Use the default PreservationProcessingMode if the defaulted attribute items are being preserved, otherwise the same as CHANGE.
    • DEFAULT

      public static final DefaultAttProcessingMode DEFAULT
      If an attribute was provided with a default value in either of the inputs, it should be default in the result (provided that it has the same value).
    • EXPLICIT

      public static final DefaultAttProcessingMode EXPLICIT
      If an attribute was explicit in either of the inputs, it should be explicit in the result.
  • Method Details

    • values

      public static DefaultAttProcessingMode[] 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 DefaultAttProcessingMode 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 representation of the enumerated type constants. Here, the strings are the same as the enumerated types except for 'AUTOMATIC', 'CHANGE', 'DEFAULT' and 'EXPLICIT' whose string representations are 'auto', 'skip', 'default' and 'explicit' respectively.
      Overrides:
      toString in class Enum<DefaultAttProcessingMode>
      Returns:
      The string representation of the enumerated type constants.
    • getDefaultAttProcessingMode

      public static DefaultAttProcessingMode getDefaultAttProcessingMode(String val)

      Returns a DefaultAttProcessingMode object from the supplied String value if appropriate.

      This method should not be used under normal circumstances, enum instance values should be used instead.

      Parameters:
      val - a String representation of a DefaultAttProcessingMode value or null for the default value
      Returns:
      the DefaultAttProcessingMode instance corresponding to the parameter, or null if the value is invalid