|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.osgi.internal.resolver.ImportPackageSpecificationImpl
public class ImportPackageSpecificationImpl
| Field Summary | |
|---|---|
protected java.lang.Object |
monitor
|
| Fields inherited from interface org.eclipse.osgi.service.resolver.ImportPackageSpecification |
|---|
RESOLUTION_DYNAMIC, RESOLUTION_OPTIONAL, RESOLUTION_STATIC |
| Constructor Summary | |
|---|---|
ImportPackageSpecificationImpl()
|
|
| Method Summary | |
|---|---|
java.util.Map |
getAttributes()
Returns the arbitrary attributes which this import package may be resolved to. |
BundleDescription |
getBundle()
Returns the bundle that declares this constraint. |
java.lang.String |
getBundleSymbolicName()
Returns the symbolic name of the bundle this import package must be resolved to. |
VersionRange |
getBundleVersionRange()
Returns the version range which this import package may be resolved to. |
java.lang.Object |
getDirective(java.lang.String key)
Returns the specified directive that control this import package. |
java.util.Map |
getDirectives()
Returns the directives that control this import package. |
java.lang.String |
getName()
Returns this constraint's name. |
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. |
protected void |
setAttributes(java.util.Map attributes)
|
protected void |
setBundle(BundleDescription bundle)
|
protected void |
setBundleSymbolicName(java.lang.String symbolicName)
|
protected void |
setBundleVersionRange(VersionRange bundleVersionRange)
|
java.lang.Object |
setDirective(java.lang.String key,
java.lang.Object value)
|
void |
setDirectives(java.util.Map directives)
|
protected void |
setName(java.lang.String name)
|
protected void |
setSupplier(BaseDescription supplier)
|
protected void |
setVersionRange(VersionRange versionRange)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.osgi.service.resolver.VersionConstraint |
|---|
getBundle, getName, getSupplier, getVersionRange, isResolved |
| Field Detail |
|---|
protected final java.lang.Object monitor
| Constructor Detail |
|---|
public ImportPackageSpecificationImpl()
| Method Detail |
|---|
public java.util.Map getDirectives()
ImportPackageSpecification
getDirectives in interface ImportPackageSpecificationpublic java.lang.Object getDirective(java.lang.String key)
ImportPackageSpecification
getDirective in interface ImportPackageSpecification
public java.lang.Object setDirective(java.lang.String key,
java.lang.Object value)
public void setDirectives(java.util.Map directives)
public java.lang.String getBundleSymbolicName()
ImportPackageSpecification
getBundleSymbolicName in interface ImportPackageSpecificationnull indicates any symbolic name.public VersionRange getBundleVersionRange()
ImportPackageSpecification
getBundleVersionRange in interface ImportPackageSpecificationpublic java.util.Map getAttributes()
ImportPackageSpecification
getAttributes in interface ImportPackageSpecificationpublic boolean isSatisfiedBy(BaseDescription supplier)
VersionConstraint
isSatisfiedBy in interface VersionConstraintsupplier - a supplier to be tested against this constraint (may be
null)
true if this constraint could be resolved using the supplier,
false otherwiseprotected void setBundleSymbolicName(java.lang.String symbolicName)
protected void setBundleVersionRange(VersionRange bundleVersionRange)
protected void setAttributes(java.util.Map attributes)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getName()
VersionConstraint
getName in interface VersionConstraintpublic VersionRange getVersionRange()
VersionConstraint
getVersionRange in interface VersionConstraintnullpublic BundleDescription getBundle()
VersionConstraint
getBundle in interface VersionConstraintpublic boolean isResolved()
VersionConstraint
isResolved in interface VersionConstrainttrue if this bundle is resolved, false
otherwisepublic BaseDescription getSupplier()
VersionConstraint
getSupplier in interface VersionConstraintnullVersionConstraint.isResolved()protected void setName(java.lang.String name)
protected void setVersionRange(VersionRange versionRange)
protected void setBundle(BundleDescription bundle)
protected void setSupplier(BaseDescription supplier)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||