|
Eclipse Platform Release 4.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VersionConstraint
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).
This interface is not intended to be implemented by clients. The
StateObjectFactory should be used to construct instances.
| Method Summary | |
|---|---|
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. |
Object |
getUserObject()
Returns the user object associated to this constraint, or null if none exists. |
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. |
void |
setUserObject(Object userObject)
Associates a user-provided object to this constraint, or removes an existing association, if null is provided. |
| Method Detail |
|---|
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.
Object getUserObject()
null if none exists.
nullvoid setUserObject(Object userObject)
null is provided. The
provided object is not interpreted in any ways by this
constrain.
userObject - an arbitrary object provided by the user, or
null
|
Eclipse Platform Release 4.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2012. All rights reserved.