Package aQute.bnd.osgi
Enum AttributeClasses
- java.lang.Object
-
- java.lang.Enum<AttributeClasses>
-
- aQute.bnd.osgi.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 onPackages
andParameters
. 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.
-
-
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.
-
-
-
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 namejava.lang.NullPointerException
- if the argument is null
-
-