public interface IRequirement
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
.
IProvidedCapability
,
MetadataFactory.createRequirement(String, String, VersionRange, String, boolean, boolean, boolean)
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns a textual description of this requirement.
|
IMatchExpression<IInstallableUnit> |
getFilter() |
IMatchExpression<IInstallableUnit> |
getMatches()
Returns a boolean match expression that will return true for any
IInstallableUnit that matches the requirement. |
int |
getMax()
Returns the maximum cardinality of the requirement.
|
int |
getMin()
Returns the minimum cardinality of the requirement.
|
boolean |
isGreedy()
Returns whether this requirement should cause extra installable units
to be installed in order to satisfy it.
|
boolean |
isMatch(IInstallableUnit iu)
Returns whether the provided capabilities of the given installable unit satisfy
this requirement.
|
int getMin()
int getMax()
IMatchExpression<IInstallableUnit> getFilter()
IMatchExpression<IInstallableUnit> getMatches()
IInstallableUnit
that matches the requirement.boolean isMatch(IInstallableUnit iu)
iu
- the installable unit to check for matching capabilitiestrue
if the given installable unit satisfies this
requirement, and false
otherwise.boolean isGreedy()
true
if additional installable units should be installed
to satisfy this requirement, and false
otherwiseString getDescription()
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.