Enum Class ModifiedAttributeMode

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

public enum ModifiedAttributeMode extends Enum<ModifiedAttributeMode>
Defined the modified attribute processing mode.
Since:
7.0
  • Enum Constant Details

    • AUTOMATIC

      public static final ModifiedAttributeMode AUTOMATIC
      The behaviour will depend on other parameter settings, primarily the output-format. If the output format is able to show attribute changes, modified attributes will not be processed differently, otherwise 'B' mode will be chosen.
    • CHANGE

      public static final ModifiedAttributeMode CHANGE
      The associated modified attribute filter will be skipped, thus leaving the delta attribute change markup alone.
    • DOCUMENT_B

      public static final ModifiedAttributeMode DOCUMENT_B
      Output the 'B' version of modified attributes and any added ('B') attributes. Note that deleted ('A') attributes will not be output.
    • DOCUMENT_B_THEN_A

      public static final ModifiedAttributeMode DOCUMENT_B_THEN_A
      Output the 'B' version of modified attributes. Output both inserted ('B') and deleted ('A') attributes.
    • DOCUMENT_A

      public static final ModifiedAttributeMode DOCUMENT_A
      Output the 'A' version of modified attributes and any deleted ('A') attributes. Note that added ('B') attributes will not be output.
    • DOCUMENT_A_THEN_B

      public static final ModifiedAttributeMode DOCUMENT_A_THEN_B
      Output the 'A' version of modified attributes. Output both inserted ('B') and deleted ('A') attributes.
    • ENCODE_AS_ATTRIBUTES

      public static final ModifiedAttributeMode ENCODE_AS_ATTRIBUTES
      Output the 'B' version of modified attributes and any added ('B') attributes but additionally show the changes encoded as attributes in the attribute-change ('ac') namespace.
  • Method Details

    • values

      public static ModifiedAttributeMode[] 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 ModifiedAttributeMode 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()

      Returns a String representation of ModifiedAttributeMode.

      Overrides:
      toString in class Enum<ModifiedAttributeMode>
      Returns:
      a String representing the ModifiedAttributeMode object
    • getModifiedAttributeMode

      public static ModifiedAttributeMode getModifiedAttributeMode(String value)

      Returns a ModifiedAttributeMode 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:
      value - a String representation of a ModifiedAttributeMode value
      Returns:
      the ModifiedAttributeMode instance corresponding to the parameter, or null if the value is invalid