org.eclipse.osgi.service.resolver
public interface VersionConstraint extends Cloneable
This interface is not intended to be implemented by clients. The
StateObjectFactory should be used to construct instances.
| Modifier and Type | Method and Description |
|---|---|
BundleDescription |
getBundle()
Returns the bundle that declares this constraint.
|
String |
getName()
Returns this constraint's name.
|
BundleRequirement |
getRequirement()
Returns the requirement represented by this constraint.
|
BaseDescription |
getSupplier()
Returns the supplier that satisfies this constraint, if it is resolved.
|
VersionRange |
getVersionRange()
Returns the version range for this constraint.
|
boolean |
isResolved()
Returns whether this constraint is resolved.
|
boolean |
isSatisfiedBy(BaseDescription supplier)
Returns whether this constraint could be satisfied by the given supplier.
|
String getName()
VersionRange getVersionRange()
nullBundleDescription getBundle()
boolean isResolved()
true if this bundle is resolved, false
otherwiseboolean isSatisfiedBy(BaseDescription supplier)
supplier - a supplier to be tested against this constraint (may be
null)true if this constraint could be resolved using the supplier,
false otherwiseBaseDescription getSupplier()
nullisResolved()BundleRequirement getRequirement()
null is
returned.Guidelines for using Eclipse APIs. Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.