Enum Class Requirement.Resolution

java.lang.Object
java.lang.Enum<Requirement.Resolution>
org.osgi.annotation.bundle.Requirement.Resolution
All Implemented Interfaces:
Serializable, Comparable<Requirement.Resolution>, Constable
Enclosing class:
Requirement

public static enum Requirement.Resolution extends Enum<Requirement.Resolution>
Resolution for this requirement.
  • Enum Constant Details

    • MANDATORY

      public static final Requirement.Resolution MANDATORY
      A mandatory requirement forbids the bundle to resolve when the requirement is not satisfied.
    • OPTIONAL

      public static final Requirement.Resolution OPTIONAL
      An optional requirement allows a bundle to resolve even if the requirement is not satisfied.
  • Field Details

    • value

      private final String value
  • Constructor Details

    • Resolution

      private Resolution(String value)
  • Method Details

    • values

      public static Requirement.Resolution[] 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 Requirement.Resolution 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Requirement.Resolution>