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
FieldsModifier and TypeFieldDescriptionstatic final intThe multiple resolution typestatic final intThe optional resolution type -
Method Summary
Modifier and TypeMethodDescriptionReturns a matching filter used to match with a suppliers attributesintReturns the resolution type of the required capability.Returns the suppliers of the capability.getType()Returns the type of generic specificationMethods inherited from interface 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_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
-