public class BundleCapabilityImpl extends Object implements BundleCapability
| Modifier and Type | Field and Description |
|---|---|
static String |
VERSION_ATTR |
| Constructor and Description |
|---|
BundleCapabilityImpl(BundleRevision revision,
String namespace,
Map<String,String> dirs,
Map<String,Object> attrs) |
| Modifier and Type | Method and Description |
|---|---|
static BundleCapabilityImpl |
createFrom(BundleCapabilityImpl capability,
Function<Object,Object> cache) |
Map<String,Object> |
getAttributes()
Returns the attributes of this capability.
|
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() |
boolean |
isAttributeMandatory(String name) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCodepublic static final String VERSION_ATTR
public static BundleCapabilityImpl createFrom(BundleCapabilityImpl capability, Function<Object,Object> cache)
public BundleRevision getResource()
BundleCapability
This method returns the same value as BundleCapability.getRevision().
getResource in interface BundleCapabilitygetResource in interface Capabilitypublic BundleRevision getRevision()
BundleCapabilitygetRevision in interface BundleCapabilitypublic String getNamespace()
BundleCapabilitygetNamespace in interface BundleCapabilitygetNamespace in interface Capabilitypublic 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 Capabilitypublic Map<String,Object> getAttributes()
BundleCapabilitygetAttributes in interface BundleCapabilitygetAttributes in interface Capabilitypublic boolean isAttributeMandatory(String name)
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.