Enum Class ResultRule

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

public enum ResultRule extends Enum<ResultRule>
This enumeration contains options for which inputs content should be used in the result, when ignoring changes.
  • Enum Constant Details

    • BA

      public static final ResultRule BA
      Default. This uses the value from input B if it exists, otherwise uses the value from input A.
    • AB

      public static final ResultRule AB
      This uses the value from input A if it exists, otherwise uses the value from input B.
    • A

      public static final ResultRule A
      This uses the value from input A if it exists, otherwise no value is output.
    • B

      public static final ResultRule B
      This uses the value from input B if it exists, otherwise no value is output.
    • DELETE

      public static final ResultRule DELETE
      No value is given in the output under any circumstances, but still processes the subtree if present.
  • Method Details

    • values

      public static ResultRule[] 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 ResultRule 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
    • getResultRuleValue

      public static ResultRule getResultRuleValue(String val)