Enum AttributeClasses

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<AttributeClasses>, java.util.function.Predicate<java.lang.String>

    public enum AttributeClasses
    extends java.lang.Enum<AttributeClasses>
    implements java.util.function.Predicate<java.lang.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 Summary

      Enum Constants 
      Enum Constant Description
      BND_USE
      Attributes set by the user but solely with the purpose to control bnd processing.
      INTERNAL
      Attributes set and used by bnd code to maintain internal correlations.
      MANIFEST
      Attributes that would show up in the manifest.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static AttributeClasses valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static AttributeClasses[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or, test
    • Enum Constant Detail

      • 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.
    • Method Detail

      • values

        public static AttributeClasses[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AttributeClasses c : AttributeClasses.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AttributeClasses valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null