|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.osgi.internal.resolver.GenericSpecificationImpl
public class GenericSpecificationImpl
| Field Summary | |
|---|---|
protected java.lang.Object |
monitor
|
| Fields inherited from interface org.eclipse.osgi.service.resolver.GenericSpecification |
|---|
RESOLUTION_MULTIPLE, RESOLUTION_OPTIONAL |
| Constructor Summary | |
|---|---|
GenericSpecificationImpl()
|
|
| Method Summary | |
|---|---|
BundleDescription |
getBundle()
Returns the bundle that declares this constraint. |
protected java.util.Map<java.lang.String,java.lang.Object> |
getInteralAttributes()
|
protected java.util.Map<java.lang.String,java.lang.String> |
getInternalDirectives()
|
protected java.lang.String |
getInternalNameSpace()
|
java.lang.String |
getMatchingFilter()
Returns a matching filter used to match with a suppliers attributes |
java.lang.String |
getName()
Returns this constraint's name. |
BundleRequirement |
getRequirement()
Returns the requirement represented by this constraint. |
int |
getResolution()
Returns the resolution type of the required capability. |
BaseDescription |
getSupplier()
Returns the supplier that satisfies this constraint, if it is resolved. |
GenericDescription[] |
getSuppliers()
Returns the suppliers of the capability. |
java.lang.String |
getType()
Returns the type of generic specification |
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 |
setBundle(BundleDescription bundle)
|
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, getRequirement, getVersionRange |
| Field Detail |
|---|
protected final java.lang.Object monitor
| Constructor Detail |
|---|
public GenericSpecificationImpl()
| Method Detail |
|---|
public java.lang.String getMatchingFilter()
GenericSpecification
getMatchingFilter in interface GenericSpecificationpublic 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 otherwisepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getType()
GenericSpecification
getType in interface GenericSpecificationpublic int getResolution()
GenericSpecificationGenericSpecification.RESOLUTION_OPTIONAL
and/or the multiple bit GenericSpecification.RESOLUTION_MULTIPLE set.
getResolution in interface GenericSpecificationpublic boolean isResolved()
VersionConstraint
isResolved in interface VersionConstrainttrue if this bundle is resolved, false
otherwisepublic BaseDescription getSupplier()
VersionConstraint
getSupplier in interface VersionConstraintnullVersionConstraint.isResolved()protected void setSupplier(BaseDescription supplier)
public GenericDescription[] getSuppliers()
GenericSpecification
getSuppliers in interface GenericSpecificationprotected java.util.Map<java.lang.String,java.lang.String> getInternalDirectives()
protected java.util.Map<java.lang.String,java.lang.Object> getInteralAttributes()
protected java.lang.String getInternalNameSpace()
public java.lang.String getName()
VersionConstraint
getName in interface VersionConstraintpublic VersionRange getVersionRange()
VersionConstraint
getVersionRange in interface VersionConstraintnullpublic BundleDescription getBundle()
VersionConstraint
getBundle in interface VersionConstraintprotected void setName(java.lang.String name)
protected void setVersionRange(VersionRange versionRange)
protected void setBundle(BundleDescription bundle)
public BundleRequirement getRequirement()
VersionConstraintnull is
returned.
getRequirement in interface VersionConstraint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||