org.eclipse.osgi.service.resolver
Interface GenericSpecification

All Superinterfaces:
java.lang.Cloneable, VersionConstraint

public interface GenericSpecification
extends VersionConstraint

A specification which depends on a generic capability

Since:
3.2

Field Summary
static int RESOLUTION_MULTIPLE
          The multiple resolution type
static int RESOLUTION_OPTIONAL
          The optional resolution type
 
Method Summary
 java.lang.String getMatchingFilter()
          Returns a matching filter used to match with a suppliers attributes
 int getResolution()
          Returns the resolution type of the required capability.
 GenericDescription[] getSuppliers()
          Returns the suppliers of the capability.
 java.lang.String getType()
          Returns the type of generic specification
 
Methods inherited from interface org.eclipse.osgi.service.resolver.VersionConstraint
getBundle, getName, getSupplier, getVersionRange, isResolved, isSatisfiedBy
 

Field Detail

RESOLUTION_OPTIONAL

static final int RESOLUTION_OPTIONAL
The optional resolution type

See Also:
getResolution(), Constant Field Values

RESOLUTION_MULTIPLE

static final int RESOLUTION_MULTIPLE
The multiple resolution type

See Also:
getResolution(), Constant Field Values
Method Detail

getMatchingFilter

java.lang.String getMatchingFilter()
Returns a matching filter used to match with a suppliers attributes

Returns:
a matching filter used to match with a suppliers attributes

getType

java.lang.String getType()
Returns the type of generic specification

Returns:
the type of generic specification

getResolution

int getResolution()
Returns the resolution type of the required capability. The returned value is a bit mask that may have the optional bit RESOLUTION_OPTIONAL and/or the multiple bit RESOLUTION_MULTIPLE set.

Returns:
the resolution type of the required capability

getSuppliers

GenericDescription[] getSuppliers()
Returns the suppliers of the capability. If the the resolution is multiple then more than one supplier may be returned

Returns:
the suppliers of the capability