Enum Class Category

java.lang.Object
java.lang.Enum<Category>
org.openrewrite.gradle.attributes.Category
All Implemented Interfaces:
Serializable, Comparable<Category>, Constable, org.openrewrite.maven.attributes.Attribute

public enum Category extends Enum<Category> implements org.openrewrite.maven.attributes.Attribute
  • Enum Constant Details

    • DOCUMENTATION

      public static final Category DOCUMENTATION
      The documentation category
    • ENFORCED_PLATFORM

      public static final Category ENFORCED_PLATFORM
      The enforced platform, usually a synthetic variant derived from the platform
    • LIBRARY

      public static final Category LIBRARY
      The library category
    • REGULAR_PLATFORM

      public static final Category REGULAR_PLATFORM
      Typically marks a dependency as platform. "platform" has very similar semantics to a Maven bill of materials (BOM) added to the "import" scope via dependencyManagement.
    • VERIFICATION

      public static final Category VERIFICATION
      The verification category, for variants which contain the results of running verification tasks (e.g. Test, Jacoco).
  • Method Details

    • values

      public static Category[] 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 Category 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
    • isBom

      public boolean isBom()
      A regular platform or enforced platform dependency is being used as a bill-of-materials to provide version numbers, not actually as a dependency on its own.
    • key

      public static String key()
    • from

      public static @Nullable Category from(@Nullable String category)