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, wait
equals, hashCode
public 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 BundleCapability
getResource
in interface Capability
public BundleRevision getRevision()
BundleCapability
getRevision
in interface BundleCapability
public String getNamespace()
BundleCapability
getNamespace
in interface BundleCapability
getNamespace
in interface Capability
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
public Map<String,Object> getAttributes()
BundleCapability
getAttributes
in interface BundleCapability
getAttributes
in interface Capability
public boolean isAttributeMandatory(String name)
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.