Interface GenericSpecification
- All Superinterfaces:
Cloneable
,VersionConstraint
A specification which depends on a generic capability
- Since:
- 3.2
- Restriction:
- This interface is not intended to be implemented by clients.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The multiple resolution typestatic final int
The optional resolution type -
Method Summary
Modifier and TypeMethodDescriptionReturns a matching filter used to match with a suppliers attributesint
Returns the resolution type of the required capability.Returns the suppliers of the capability.getType()
Returns the type of generic specificationMethods inherited from interface org.eclipse.osgi.service.resolver.VersionConstraint
getBundle, getName, getRequirement, getSupplier, getUserObject, getVersionRange, isResolved, isSatisfiedBy, setUserObject
-
Field Details
-
RESOLUTION_OPTIONAL
static final int RESOLUTION_OPTIONALThe optional resolution type- See Also:
-
RESOLUTION_MULTIPLE
static final int RESOLUTION_MULTIPLEThe multiple resolution type- See Also:
-
-
Method Details
-
getMatchingFilter
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
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 bitRESOLUTION_OPTIONAL
and/or the multiple bitRESOLUTION_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
-