Class BundleRequirementImpl
java.lang.Object
org.apache.felix.framework.wiring.BundleRequirementImpl
- All Implemented Interfaces:
 BundleRequirement,Requirement
- Direct Known Subclasses:
 WrappedRequirement
- 
Constructor Summary
ConstructorsConstructorDescriptionBundleRequirementImpl(BundleRevision revision, String namespace, Map<String, String> dirs, Map<String, Object> attrs) BundleRequirementImpl(BundleRevision revision, String namespace, Map<String, String> dirs, Map<String, Object> attrs, SimpleFilter filter)  - 
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.booleanbooleanmatches(BundleCapability cap) Returns whether the specified capability matches this requirement.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.osgi.resource.Requirement
equals, hashCode 
- 
Constructor Details
- 
BundleRequirementImpl
public BundleRequirementImpl(BundleRevision revision, String namespace, Map<String, String> dirs, Map<String, Object> attrs, SimpleFilter filter)  - 
BundleRequirementImpl
 
 - 
 - 
Method Details
- 
getNamespace
Description copied from interface:BundleRequirementReturns the namespace of this requirement.- Specified by:
 getNamespacein interfaceBundleRequirement- Specified by:
 getNamespacein interfaceRequirement- Returns:
 - The namespace of this requirement.
 
 - 
getDirectives
Description copied from interface:BundleRequirementReturns 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 interfaceBundleRequirement- 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
Description copied from interface:BundleRequirementReturns the attributes of this requirement.Requirement attributes have no specified semantics and are considered extra user defined information.
- Specified by:
 getAttributesin interfaceBundleRequirement- 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
Description copied from interface:BundleRequirementReturns the resource declaring this requirement.This method returns the same value as
BundleRequirement.getRevision().- Specified by:
 getResourcein interfaceBundleRequirement- Specified by:
 getResourcein interfaceRequirement- Returns:
 - The resource declaring this requirement. This can be 
nullif this requirement is synthesized. 
 - 
getRevision
Description copied from interface:BundleRequirementReturns the bundle revision declaring this requirement.- Specified by:
 getRevisionin interfaceBundleRequirement- Returns:
 - The bundle revision declaring this requirement.
 
 - 
matches
Description copied from interface:BundleRequirementReturns whether the specified capability matches this requirement.- Specified by:
 matchesin interfaceBundleRequirement- Parameters:
 cap- 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.
 - 
isOptional
public boolean isOptional() - 
getFilter
 - 
toString
 
 -