|
||||||||||
| 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 Object |
monitor
|
| Fields inherited from interface org.eclipse.osgi.service.resolver.ImportPackageSpecification |
|---|
RESOLUTION_DYNAMIC, RESOLUTION_OPTIONAL, RESOLUTION_STATIC |
| Constructor Summary | |
|---|---|
ImportPackageSpecificationImpl()
|
|
| Method Summary | |
|---|---|
Map<String,Object> |
getAttributes()
Returns the arbitrary attributes which this import package may be resolved to. |
BundleDescription |
getBundle()
Returns the bundle that declares this constraint. |
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. |
Object |
getDirective(String key)
Returns the specified directive that control this import package. |
Map<String,Object> |
getDirectives()
Returns the directives that control this import package. |
protected Map<String,Object> |
getInteralAttributes()
|
protected Map<String,String> |
getInternalDirectives()
|
protected String |
getInternalNameSpace()
|
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. |
protected boolean |
hasMandatoryAttributes(String[] mandatory)
|
boolean |
isResolved()
Returns whether this constraint is resolved. |
boolean |
isSatisfiedBy(BaseDescription supplier)
Returns whether this constraint could be satisfied by the given supplier. |
boolean |
isSatisfiedBy(BaseDescription supplier,
boolean checkEE)
|
protected void |
setAttributes(Map<String,?> attributes)
|
protected void |
setBundle(BundleDescription bundle)
|
protected void |
setBundleSymbolicName(String symbolicName)
|
protected void |
setBundleVersionRange(VersionRange bundleVersionRange)
|
protected void |
setName(String name)
|
protected void |
setSupplier(BaseDescription supplier)
|
void |
setUserObject(Object userObject)
Associates a user-provided object to this constraint, or removes an existing association, if null is provided. |
protected void |
setVersionRange(VersionRange versionRange)
|
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, getRequirement, getSupplier, getUserObject, getVersionRange, isResolved, setUserObject |
| Field Detail |
|---|
protected final Object monitor
| Constructor Detail |
|---|
public ImportPackageSpecificationImpl()
| Method Detail |
|---|
public Map<String,Object> getDirectives()
ImportPackageSpecification
getDirectives in interface ImportPackageSpecificationpublic Object getDirective(String key)
ImportPackageSpecification
getDirective in interface ImportPackageSpecificationpublic String getBundleSymbolicName()
ImportPackageSpecification
getBundleSymbolicName in interface ImportPackageSpecificationnull indicates any symbolic name.public VersionRange getBundleVersionRange()
ImportPackageSpecification
getBundleVersionRange in interface ImportPackageSpecificationpublic Map<String,Object> 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 otherwise
public boolean isSatisfiedBy(BaseDescription supplier,
boolean checkEE)
protected boolean hasMandatoryAttributes(String[] mandatory)
protected void setBundleSymbolicName(String symbolicName)
protected void setBundleVersionRange(VersionRange bundleVersionRange)
protected void setAttributes(Map<String,?> attributes)
public String toString()
toString in class Objectprotected Map<String,String> getInternalDirectives()
protected Map<String,Object> getInteralAttributes()
protected String getInternalNameSpace()
public 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(String name)
protected void setVersionRange(VersionRange versionRange)
protected void setBundle(BundleDescription bundle)
protected void setSupplier(BaseDescription supplier)
public BundleRequirement getRequirement()
VersionConstraintnull is
returned.
getRequirement in interface VersionConstraintpublic Object getUserObject()
VersionConstraintnull if none exists.
getUserObject in interface VersionConstraintnullpublic void setUserObject(Object userObject)
VersionConstraintnull is provided. The
provided object is not interpreted in any ways by this
constrain.
setUserObject in interface VersionConstraintuserObject - an arbitrary object provided by the user, or
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||