Package org.osgi.annotation.bundle
Enum Export.Substitution
- java.lang.Object
-
- java.lang.Enum<Export.Substitution>
-
- org.osgi.annotation.bundle.Export.Substitution
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Export.Substitution>
- Enclosing class:
- Export
public static enum Export.Substitution extends java.lang.Enum<Export.Substitution>
Substitution policy for this package.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CALCULATED
The policy value is calculated by inspection of the classes in the package.CONSUMER
Use a consumer type version range for the import package clause when substitutably importing a package.NOIMPORT
The package must not be substitutably imported.PROVIDER
Use a provider type version range for the import package clause when substitutably importing a package.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Export.Substitution
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Export.Substitution[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONSUMER
public static final Export.Substitution CONSUMER
Use a consumer type version range for the import package clause when substitutably importing a package.- See Also:
ConsumerType
-
PROVIDER
public static final Export.Substitution PROVIDER
Use a provider type version range for the import package clause when substitutably importing a package.- See Also:
ProviderType
-
NOIMPORT
public static final Export.Substitution NOIMPORT
The package must not be substitutably imported.
-
CALCULATED
public static final Export.Substitution CALCULATED
The policy value is calculated by inspection of the classes in the package.
-
-
Method Detail
-
values
public static Export.Substitution[] 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 (Export.Substitution c : Export.Substitution.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Export.Substitution 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
-
-