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.
|
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. |
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
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.