Enum Class AttributeClasses

java.lang.Object
java.lang.Enum<AttributeClasses>
aQute.bnd.osgi.AttributeClasses
All Implemented Interfaces:
Serializable, Comparable<AttributeClasses>, Constable, Predicate<String>

public enum AttributeClasses extends Enum<AttributeClasses> implements Predicate<String>
Defines a number of attribute classes. Attributes are set on Packages and Parameters. The primary purpose is to print these attributes in the manifest. However, over time a number of use cases made the code use the attributes to control bnd processing and/or are actually set by bnd. This enum provides access to these classes. Each enum value is a predicate that can test a key.
  • Enum Constant Details

    • MANIFEST

      public static final AttributeClasses MANIFEST
      Attributes that would show up in the manifest.
    • INTERNAL

      public static final AttributeClasses INTERNAL
      Attributes set and used by bnd code to maintain internal correlations. These attributes are never set by users. For example, "-internal-bundlesymbolicname:" These attributes must not end up in the manifest.
    • BND_USE

      public static final AttributeClasses BND_USE
      Attributes set by the user but solely with the purpose to control bnd processing. For example "-split-package:". These attributes must not end up in the manifest.
  • Field Details

  • Constructor Details

    • AttributeClasses

      private AttributeClasses()
  • Method Details

    • values

      public static AttributeClasses[] 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 AttributeClasses 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