public class BundleCapabilityImpl extends java.lang.Object implements BundleCapability
构造器和说明 |
---|
BundleCapabilityImpl(BundleCapability bc,
BundleGeneration bg) |
BundleCapabilityImpl(BundleGeneration bg) |
BundleCapabilityImpl(BundleGeneration gen,
Util.HeaderEntry he)
Creates a
BundleCapability from one entry of the Bundle-Capability
header. |
限定符和类型 | 方法和说明 |
---|---|
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, wait
equals, hashCode
public 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()
BundleCapability
getNamespace
在接口中 BundleCapability
getNamespace
在接口中 Capability
public 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
在接口中 BundleCapability
getDirectives
在接口中 Capability
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
BundleCapability
getAttributes
在接口中 BundleCapability
getAttributes
在接口中 Capability
public BundleRevision getRevision()
BundleCapability
getRevision
在接口中 BundleCapability
public BundleRevision getResource()
BundleCapability
This method returns the same value as BundleCapability.getRevision()
.
getResource
在接口中 BundleCapability
getResource
在接口中 Capability
public java.lang.String toString()
toString
在类中 java.lang.Object