Enum Class Export.Substitution

java.lang.Object
java.lang.Enum<Export.Substitution>
aQute.bnd.bundle.annotations.Export.Substitution
All Implemented Interfaces:
Serializable, Comparable<Export.Substitution>, Constable
Enclosing class:
Export

public static enum Export.Substitution extends Enum<Export.Substitution>
Substitution policy for this package.
  • Enum Constant Details

    • 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.
  • Constructor Details

    • Substitution

      private Substitution()
  • Method Details

    • values

      public static Export.Substitution[] 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 Export.Substitution 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