Enum BundledLicenseTexts.Mode

java.lang.Object
java.lang.Enum<BundledLicenseTexts.Mode>
org.codehaus.mojo.license.download.BundledLicenseTexts.Mode
All Implemented Interfaces:
Serializable, Comparable<BundledLicenseTexts.Mode>
Enclosing class:
BundledLicenseTexts

public static enum BundledLicenseTexts.Mode extends Enum<BundledLicenseTexts.Mode>
Which of the bundled texts replace a download.
Since:
2.8.0
  • Enum Constant Details

    • none

      public static final BundledLicenseTexts.Mode none
      Download every license, as in previous versions of the plugin.
    • text

      public static final BundledLicenseTexts.Mode text
      Serve bundled texts only for URLs that return plain text. This is the default.
    • all

      public static final BundledLicenseTexts.Mode all
      Serve bundled texts also for URLs of HTML pages, which changes the name, content and checksum of the file.
  • Method Details

    • values

      public static BundledLicenseTexts.Mode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static BundledLicenseTexts.Mode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null