|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.felix.framework.wiring.BundleCapabilityImpl
org.apache.felix.framework.resolver.WrappedCapability
public class WrappedCapability
| Field Summary |
|---|
| Fields inherited from class org.apache.felix.framework.wiring.BundleCapabilityImpl |
|---|
VERSION_ATTR |
| Constructor Summary | |
|---|---|
WrappedCapability(BundleRevision host,
BundleCapabilityImpl cap)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Compares this Capability to another Capability. |
Map<String,Object> |
getAttributes()
Returns the attributes of this capability. |
BundleCapability |
getDeclaredCapability()
|
Map<String,String> |
getDirectives()
Returns the directives of this capability. |
String |
getNamespace()
Returns the namespace of this capability. |
BundleRevision |
getResource()
Returns the resource declaring this capability. |
BundleRevision |
getRevision()
Returns the bundle revision declaring this capability. |
List<String> |
getUses()
|
int |
hashCode()
Returns the hashCode of this Capability. |
String |
toString()
|
| Methods inherited from class org.apache.felix.framework.wiring.BundleCapabilityImpl |
|---|
isAttributeMandatory, isIncluded |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WrappedCapability(BundleRevision host,
BundleCapabilityImpl cap)
| Method Detail |
|---|
public boolean equals(Object obj)
CapabilityCapability to another Capability.
This Capability is equal to another Capability if they
have the same namespace, directives and attributes and are declared by
the same resource.
equals in interface Capabilityequals in class Objectobj - The object to compare against this Capability.
true if this Capability is equal to the other
object; false otherwise.public int hashCode()
CapabilityCapability.
hashCode in interface CapabilityhashCode in class ObjectCapability.public BundleCapability getDeclaredCapability()
getDeclaredCapability in interface HostedCapabilitypublic BundleRevision getResource()
BundleCapability
This method returns the same value as BundleCapability.getRevision().
getResource in interface BundleCapabilitygetResource in interface CapabilitygetResource in class BundleCapabilityImplpublic BundleRevision getRevision()
BundleCapability
getRevision in interface HostedCapabilitygetRevision in interface BundleCapabilitygetRevision in class BundleCapabilityImplpublic String getNamespace()
BundleCapability
getNamespace in interface BundleCapabilitygetNamespace in interface CapabilitygetNamespace in class BundleCapabilityImplpublic Map<String,String> getDirectives()
BundleCapability
All capability directives not specified by the
wiring namespaces have no specified
semantics and are considered extra user defined information.
getDirectives in interface BundleCapabilitygetDirectives in interface CapabilitygetDirectives in class BundleCapabilityImplpublic Map<String,Object> getAttributes()
BundleCapability
getAttributes in interface BundleCapabilitygetAttributes in interface CapabilitygetAttributes in class BundleCapabilityImplpublic List<String> getUses()
getUses in class BundleCapabilityImplpublic String toString()
toString in class BundleCapabilityImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||