|
|||||||||
| Home >> All >> org >> eclipse >> osgi >> service >> [ resolver overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.eclipse.osgi.service.resolver
Interface VersionConstraint

- All Superinterfaces:
- java.lang.Cloneable
- All Known Subinterfaces:
- BundleSpecification, HostSpecification, PackageSpecification
- public interface VersionConstraint
- extends java.lang.Cloneable
VersionConstraints represent the relationship between two bundles (in the case of bundle requires) or a bundle and a package (in the case of import/export).
| Method Summary | |
Version |
getActualVersion()
Returns the actual version this constraint was resolved against, or null if it is not resolved. |
BundleDescription |
getBundle()
Returns the bundle that declares this constraint. |
java.lang.String |
getName()
Returns this constraint's name. |
BundleDescription |
getSupplier()
Returns the bundle 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(Version version)
Returns whether this constraint could be satisfied by the given version. |
| Method Detail |
getName
public java.lang.String getName()
- Returns this constraint's name.
getActualVersion
public Version getActualVersion()
- Returns the actual version this constraint was resolved against, or
nullif it is not resolved.
getVersionRange
public VersionRange getVersionRange()
- Returns the version range for this constraint.
getBundle
public BundleDescription getBundle()
- Returns the bundle that declares this constraint.
getSupplier
public BundleDescription getSupplier()
- Returns the bundle that satisfies this constraint, if it is resolved.
isResolved
public boolean isResolved()
- Returns whether this constraint is resolved. A resolved constraint
is guaranteed to have its supplier defined.
isSatisfiedBy
public boolean isSatisfiedBy(Version version)
- Returns whether this constraint could be satisfied by the given version.
This will depend on the required version, the given version, and the
matching rule. A constraint that does not declare a required version is
satisfiable by any version.
|
|||||||||
| Home >> All >> org >> eclipse >> osgi >> service >> [ resolver overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC