Enum Class ReportFormat

java.lang.Object
java.lang.Enum<ReportFormat>
name.jurgenei.gradle.xml.validation.ReportFormat
All Implemented Interfaces:
Serializable, Comparable<ReportFormat>, Constable

public enum ReportFormat extends Enum<ReportFormat>
Output report formats emitted by validation tasks.
  • Enum Constant Details

    • SVRL

      public static final ReportFormat SVRL
      Writes only SVRL output files.
    • JUNIT

      public static final ReportFormat JUNIT
      Writes only JUnit XML reports.
    • SVRL_AND_JUNIT

      public static final ReportFormat SVRL_AND_JUNIT
      Writes both SVRL and JUnit XML outputs.
  • Method Details

    • values

      public static ReportFormat[] 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 ReportFormat 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
    • writesSvrl

      public boolean writesSvrl()
      Determines whether SVRL output files should be written.
      Returns:
      true when SVRL output should be written
    • writesJunit

      public boolean writesJunit()
      Determines whether JUnit XML reports should be written.
      Returns:
      true when JUnit XML output should be written