Interface GenericSpecification
-
- All Superinterfaces:
Cloneable,VersionConstraint
public interface GenericSpecification extends 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
Fields Modifier and Type Field Description static intRESOLUTION_MULTIPLEThe multiple resolution typestatic intRESOLUTION_OPTIONALThe optional resolution type
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetMatchingFilter()Returns a matching filter used to match with a suppliers attributesintgetResolution()Returns the resolution type of the required capability.GenericDescription[]getSuppliers()Returns the suppliers of the capability.StringgetType()Returns the type of generic specification-
Methods inherited from interface org.eclipse.osgi.service.resolver.VersionConstraint
getBundle, getName, getRequirement, getSupplier, getUserObject, getVersionRange, isResolved, isSatisfiedBy, setUserObject
-
-
-
-
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
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_OPTIONALand/or the multiple bitRESOLUTION_MULTIPLEset.- 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
-
-