Interface IRequirement

public interface IRequirement
A requirement represents some external constraint on an IInstallableUnit. Each requirement represents something an IInstallableUnit needs that it expects to be provided by another IInstallableUnit. Requirements are entirely generic, and are intended to be capable of representing anything that an IInstallableUnit may need either at install time, or at runtime.

Instances of this class are handle objects and do not necessarily reflect entities that exist in any particular profile or repository. These handle objects can be created using MetadataFactory.

See Also:
This interface is not intended to be implemented by clients.
This interface is not intended to be extended by clients.
  • Method Details

    • getMin

      int getMin()
      Returns the minimum cardinality of the requirement. That is, the minimum number of capabilities that must be provided that match this requirement before this requirement is considered fully satisfied. A minimum cardinality of 0 indicates that the requirement is optional.
      the minimum cardinality of this requirement
    • getMax

      int getMax()
      Returns the maximum cardinality of the requirement. That is, the maximum number of capabilities that are permitted to be present that satisfy this requirement. A maximum cardinality of 0 indicates that there must not be any installable unit in the system that satisfies this requirement.
      the maximum cardinality of this requirement
    • getFilter

      This method is not intended to be referenced by clients.
    • getMatches

      Returns a boolean match expression that will return true for any IInstallableUnit that matches the requirement.
      A boolean match expression for installable unit matching.
    • isMatch

      boolean isMatch(IInstallableUnit iu)
      Returns whether the provided capabilities of the given installable unit satisfy this requirement.
      iu - the installable unit to check for matching capabilities
      true if the given installable unit satisfies this requirement, and false otherwise.
    • isGreedy

      boolean isGreedy()
      Returns whether this requirement should cause extra installable units to be installed in order to satisfy it.
      true if additional installable units should be installed to satisfy this requirement, and false otherwise
    • getDescription

      String getDescription()
      Returns a textual description of this requirement.
      a textual description of this requirement