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, isIncluded
public WrappedCapability(BundleRevision host, BundleCapabilityImpl cap)
public boolean equals(Object obj)
Capability
Capability
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 Capability
equals
in class Object
obj
- The object to compare against this Capability
.true
if this Capability
is equal to the other
object; false
otherwise.public int hashCode()
Capability
Capability
.hashCode
in interface Capability
hashCode
in class Object
Capability
.public BundleCapability getDeclaredCapability()
getDeclaredCapability
in interface HostedCapability
public BundleRevision getResource()
BundleCapability
This method returns the same value as BundleCapability.getRevision()
.
getResource
in interface BundleCapability
getResource
in interface Capability
getResource
in class BundleCapabilityImpl
public BundleRevision getRevision()
BundleCapability
getRevision
in interface HostedCapability
getRevision
in interface BundleCapability
getRevision
in class BundleCapabilityImpl
public String getNamespace()
BundleCapability
getNamespace
in interface BundleCapability
getNamespace
in interface Capability
getNamespace
in class BundleCapabilityImpl
public 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 BundleCapability
getDirectives
in interface Capability
getDirectives
in class BundleCapabilityImpl
public Map<String,Object> getAttributes()
BundleCapability
getAttributes
in interface BundleCapability
getAttributes
in interface Capability
getAttributes
in class BundleCapabilityImpl
public List<String> getUses()
getUses
in class BundleCapabilityImpl
public String toString()
toString
in class BundleCapabilityImpl
Copyright © 2006-2015 The Apache Software Foundation. All Rights Reserved.