public class WrappedCapability extends BundleCapabilityImpl implements HostedCapability
VERSION_ATTR| Constructor and Description |
|---|
WrappedCapability(BundleRevision host,
BundleCapabilityImpl cap) |
| Modifier and Type | Method and Description |
|---|---|
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() |
isAttributeMandatory, isIncludedpublic WrappedCapability(BundleRevision host, BundleCapabilityImpl cap)
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()
BundleCapabilitygetRevision in interface HostedCapabilitygetRevision in interface BundleCapabilitygetRevision in class BundleCapabilityImplpublic String getNamespace()
BundleCapabilitygetNamespace 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()
BundleCapabilitygetAttributes in interface BundleCapabilitygetAttributes in interface CapabilitygetAttributes in class BundleCapabilityImplpublic List<String> getUses()
getUses in class BundleCapabilityImplpublic String toString()
toString in class BundleCapabilityImplCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.