public class RequiredCapability extends Requirement implements IRequiredCapability
IInstallableUnit.
Each capability represents something an IInstallableUnit needs that
it expects to be provided by another IInstallableUnit. Capabilities are
entirely generic, and are intended to be capable of representing anything that
an IInstallableUnit may need either at install time, or at runtime.
Capabilities are segmented into namespaces. Anyone can introduce new capability namespaces. Some well-known namespaces are introduced directly by the provisioning framework.
IInstallableUnit.NAMESPACE_IU_IDdescription, filter, greedy, matchExpression, max, MEMBER_FILTER, MEMBER_GREEDY, MEMBER_MATCH, MEMBER_MAX, MEMBER_MIN, min| Constructor and Description |
|---|
RequiredCapability(java.lang.String namespace,
java.lang.String name,
VersionRange range,
IMatchExpression<IInstallableUnit> filter,
int min,
int max,
boolean greedy,
java.lang.String description) |
RequiredCapability(java.lang.String namespace,
java.lang.String name,
VersionRange range,
java.lang.String filter,
boolean optional,
boolean multiple)
Deprecated.
To be removed once CBI is fixed.
|
RequiredCapability(java.lang.String namespace,
java.lang.String name,
VersionRange range,
java.lang.String filter,
boolean optional,
boolean multiple,
boolean greedy)
Deprecated.
To be removed once CBI is fixed.
|
| Modifier and Type | Method and Description |
|---|---|
static IMatchExpression<IInstallableUnit> |
createMatchExpressionFromRange(java.lang.String namespace,
java.lang.String name,
VersionRange range) |
static java.lang.String |
extractName(IMatchExpression<IInstallableUnit> matchExpression) |
static java.lang.String |
extractNamespace(IMatchExpression<IInstallableUnit> matchExpression) |
static VersionRange |
extractRange(IMatchExpression<IInstallableUnit> matchExpression) |
java.lang.String |
getName() |
java.lang.String |
getNamespace() |
VersionRange |
getRange()
Returns the range of versions that satisfy this required capability.
|
static boolean |
isStrictVersionRequirement(IMatchExpression<IInstallableUnit> matchExpression) |
static boolean |
isVersionRangeRequirement(IMatchExpression<IInstallableUnit> matchExpression) |
java.lang.String |
toString() |
equals, getDescription, getFilter, getMatches, getMax, getMember, getMin, hashCode, isGreedy, isMatchclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDescription, getFilter, getMatches, getMax, getMin, isGreedy, isMatch@Deprecated
public RequiredCapability(java.lang.String namespace,
java.lang.String name,
VersionRange range,
java.lang.String filter,
boolean optional,
boolean multiple)
@Deprecated
public RequiredCapability(java.lang.String namespace,
java.lang.String name,
VersionRange range,
java.lang.String filter,
boolean optional,
boolean multiple,
boolean greedy)
public RequiredCapability(java.lang.String namespace,
java.lang.String name,
VersionRange range,
IMatchExpression<IInstallableUnit> filter,
int min,
int max,
boolean greedy,
java.lang.String description)
public java.lang.String getNamespace()
getNamespace in interface IRequiredCapabilitypublic java.lang.String getName()
getName in interface IRequiredCapabilitypublic VersionRange getRange()
IRequiredCapabilityVersionRange.emptyRange if any version
will satisfy the capability.getRange in interface IRequiredCapabilitypublic java.lang.String toString()
toString in class Requirementpublic static IMatchExpression<IInstallableUnit> createMatchExpressionFromRange(java.lang.String namespace, java.lang.String name, VersionRange range)
public static java.lang.String extractName(IMatchExpression<IInstallableUnit> matchExpression)
public static java.lang.String extractNamespace(IMatchExpression<IInstallableUnit> matchExpression)
public static VersionRange extractRange(IMatchExpression<IInstallableUnit> matchExpression)
public static boolean isStrictVersionRequirement(IMatchExpression<IInstallableUnit> matchExpression)
public static boolean isVersionRangeRequirement(IMatchExpression<IInstallableUnit> matchExpression)