Enum Class WarningReportMode

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

public enum WarningReportMode extends Enum<WarningReportMode>

Specifies how certain warnings generated during the comparison process are reported.

Since:
8.0
  • Enum Constant Details

    • MESSAGE

      public static final WarningReportMode MESSAGE
      Reports warnings using <xsl:message/>. These are typically sent to std.out but this can be changed by configuring the relevant Saxon Configuration object.
    • PROCESSING_INSTRUCTIONS

      public static final WarningReportMode PROCESSING_INSTRUCTIONS
      Reports warning using processing instructions with the format <?dxml_warn warning content ?>.
    • COMMENTS

      public static final WarningReportMode COMMENTS
      Reports warnings using XML comments.
  • Method Details

    • values

      public static WarningReportMode[] 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 WarningReportMode 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 camel case string form of each of the enumerated type constants. Here, the string for an enumeration constant of the form 'FIRST_SECOND_THIRD' is 'firstSecondThird', except for the 'PROCESSING_INSTRUCTION' enumeration whose string value is 'pis'.
      Overrides:
      toString in class Enum<WarningReportMode>
      Returns:
      The camel case string form of each of the enumerated type constants.
    • getWarningReportMode

      public static WarningReportMode getWarningReportMode(String val)

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