public class BundleCapabilityImpl extends DTOId implements BundleCapability
| Constructor and Description |
|---|
BundleCapabilityImpl(BundleCapability bc,
BundleGeneration bg) |
BundleCapabilityImpl(BundleGeneration bg)
IdentityNamespace capability
|
BundleCapabilityImpl(BundleGeneration gen,
Util.HeaderEntry he)
Creates a
BundleCapability from one entry of the Bundle-Capability
header. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
Returns the attributes of this capability.
|
java.util.Map<java.lang.String,java.lang.String> |
getDirectives()
Returns the directives of this capability.
|
java.lang.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.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCodepublic BundleCapabilityImpl(BundleGeneration gen, Util.HeaderEntry he)
BundleCapability from one entry of the Bundle-Capability
header.gen - the owning bundle revision.he - the parsed bundle capability header entry.public BundleCapabilityImpl(BundleCapability bc, BundleGeneration bg)
public BundleCapabilityImpl(BundleGeneration bg)
public java.lang.String getNamespace()
BundleCapabilitygetNamespace in interface BundleCapabilitygetNamespace in interface Capabilitypublic java.util.Map<java.lang.String,java.lang.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 Capabilitypublic java.util.Map<java.lang.String,java.lang.Object> getAttributes()
BundleCapabilitygetAttributes in interface BundleCapabilitygetAttributes in interface Capabilitypublic BundleRevision getRevision()
BundleCapabilitygetRevision in interface BundleCapabilitypublic BundleRevision getResource()
BundleCapability
This method returns the same value as BundleCapability.getRevision().
getResource in interface BundleCapabilitygetResource in interface Capabilitypublic java.lang.String toString()
toString in class java.lang.Object