Package org.osgi.framework.wiring
Interface BundleRequirement
- All Superinterfaces:
 Requirement
- All Known Implementing Classes:
 BundleRequirementImpl,WrappedRequirement
A requirement that has been declared from a 
bundle
 revision.- Author:
 - $Id: ac0578af567754bcd12c63a350c06afdd1bfec05 $
 
- 
Method Summary
Modifier and TypeMethodDescriptionReturns the attributes of this requirement.Returns the directives of this requirement.Returns the namespace of this requirement.Returns the resource declaring this requirement.Returns the bundle revision declaring this requirement.booleanmatches(BundleCapability capability) Returns whether the specified capability matches this requirement.Methods inherited from interface org.osgi.resource.Requirement
equals, hashCode 
- 
Method Details
- 
getRevision
BundleRevision getRevision()Returns the bundle revision declaring this requirement.- Returns:
 - The bundle revision declaring this requirement.
 
 - 
matches
Returns whether the specified capability matches this requirement.- Parameters:
 capability- The capability to match to this requirement.- Returns:
 trueif the specified capability has the samenamespaceas this requirement and the filter for this requirement matches theattributes of the specified capability;falseotherwise.
 - 
getNamespace
String getNamespace()Returns the namespace of this requirement.- Specified by:
 getNamespacein interfaceRequirement- Returns:
 - The namespace of this requirement.
 
 - 
getDirectives
Returns the directives of this requirement.All requirement directives not specified by the
wiring namespaceshave no specified semantics and are considered extra user defined information.- Specified by:
 getDirectivesin interfaceRequirement- Returns:
 - An unmodifiable map of directive names to directive values for this requirement, or an empty map if this requirement has no directives.
 
 - 
getAttributes
Returns the attributes of this requirement.Requirement attributes have no specified semantics and are considered extra user defined information.
- Specified by:
 getAttributesin interfaceRequirement- Returns:
 - An unmodifiable map of attribute names to attribute values for this requirement, or an empty map if this requirement has no attributes.
 
 - 
getResource
BundleRevision getResource()Returns the resource declaring this requirement.This method returns the same value as
getRevision().- Specified by:
 getResourcein interfaceRequirement- Returns:
 - The resource declaring this requirement. This can be 
nullif this requirement is synthesized. - Since:
 - 1.1
 
 
 -