Class WrappedCapability
java.lang.Object
org.apache.felix.framework.wiring.BundleCapabilityImpl
org.apache.felix.framework.resolver.WrappedCapability
- All Implemented Interfaces:
 HostedCapability,BundleCapability,Capability
- 
Field Summary
Fields inherited from class org.apache.felix.framework.wiring.BundleCapabilityImpl
VERSION_ATTR - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares thisCapabilityto anotherCapability.Returns the attributes of this capability.Returns the directives of this capability.Returns the namespace of this capability.Returns the resource declaring this capability.Returns the bundle revision declaring this capability.getUses()inthashCode()Returns the hashCode of thisCapability.toString()Methods inherited from class org.apache.felix.framework.wiring.BundleCapabilityImpl
isAttributeMandatory, isIncluded 
- 
Constructor Details
- 
WrappedCapability
 
 - 
 - 
Method Details
- 
equals
Description copied from interface:CapabilityCompares thisCapabilityto anotherCapability.This
Capabilityis equal to anotherCapabilityif they have the same namespace, directives and attributes and are declared by the same resource.- Specified by:
 equalsin interfaceCapability- Overrides:
 equalsin classObject- Parameters:
 obj- The object to compare against thisCapability.- Returns:
 trueif thisCapabilityis equal to the other object;falseotherwise.
 - 
hashCode
public int hashCode()Description copied from interface:CapabilityReturns the hashCode of thisCapability.- Specified by:
 hashCodein interfaceCapability- Overrides:
 hashCodein classObject- Returns:
 - The hashCode of this 
Capability. 
 - 
getDeclaredCapability
- Specified by:
 getDeclaredCapabilityin interfaceHostedCapability
 - 
getResource
Description copied from interface:BundleCapabilityReturns the resource declaring this capability.This method returns the same value as
BundleCapability.getRevision().- Specified by:
 getResourcein interfaceBundleCapability- Specified by:
 getResourcein interfaceCapability- Overrides:
 getResourcein classBundleCapabilityImpl- Returns:
 - The resource declaring this capability.
 
 - 
getRevision
Description copied from interface:BundleCapabilityReturns the bundle revision declaring this capability.- Specified by:
 getRevisionin interfaceBundleCapability- Specified by:
 getRevisionin interfaceHostedCapability- Overrides:
 getRevisionin classBundleCapabilityImpl- Returns:
 - The bundle revision declaring this capability.
 
 - 
getNamespace
Description copied from interface:BundleCapabilityReturns the namespace of this capability.- Specified by:
 getNamespacein interfaceBundleCapability- Specified by:
 getNamespacein interfaceCapability- Overrides:
 getNamespacein classBundleCapabilityImpl- Returns:
 - The namespace of this capability.
 
 - 
getDirectives
Description copied from interface:BundleCapabilityReturns the directives of this capability.All capability directives not specified by the
wiring namespaceshave no specified semantics and are considered extra user defined information.- Specified by:
 getDirectivesin interfaceBundleCapability- Specified by:
 getDirectivesin interfaceCapability- Overrides:
 getDirectivesin classBundleCapabilityImpl- Returns:
 - An unmodifiable map of directive names to directive values for this capability, or an empty map if this capability has no directives.
 
 - 
getAttributes
Description copied from interface:BundleCapabilityReturns the attributes of this capability.- Specified by:
 getAttributesin interfaceBundleCapability- Specified by:
 getAttributesin interfaceCapability- Overrides:
 getAttributesin classBundleCapabilityImpl- Returns:
 - An unmodifiable map of attribute names to attribute values for this capability, or an empty map if this capability has no attributes.
 
 - 
getUses
- Overrides:
 getUsesin classBundleCapabilityImpl
 - 
toString
- Overrides:
 toStringin classBundleCapabilityImpl
 
 -