public class CapabilityImpl extends Object implements org.osgi.resource.Capability
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
attributes
Optional attributes.
|
protected Map<String,String> |
directives
Optional attributes.
|
protected Set<String> |
mandatory |
protected String |
namespace
The namespace.
|
protected org.osgi.resource.Resource |
resource
The resource.
|
| Constructor and Description |
|---|
CapabilityImpl(org.osgi.resource.Resource resource,
org.osgi.resource.Capability capability)
Create a capability based on an existing capability, providing the resource.
|
CapabilityImpl(org.osgi.resource.Resource res,
String ns,
Map<String,String> dirs,
Map<String,Object> attrs)
Create a capability.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getAttributes()
Return the attributes.
|
Map<String,String> |
getDirectives()
Return the directives.
|
String |
getNamespace()
Return the namespace.
|
org.osgi.resource.Resource |
getResource()
Return the resource.
|
boolean |
isAttributeMandatory(String name) |
String |
toString() |
protected final org.osgi.resource.Resource resource
protected final String namespace
public CapabilityImpl(org.osgi.resource.Resource res,
String ns,
Map<String,String> dirs,
Map<String,Object> attrs)
res - The resource associated with the capability.ns - The namespace of the capability.attrs - The attributes of the capability.dirs - The directives of the capability.public CapabilityImpl(org.osgi.resource.Resource resource,
org.osgi.resource.Capability capability)
capability - The capability to base the new requirement on.resource - The resource to be associated with the capabilitypublic boolean isAttributeMandatory(String name)
public String getNamespace()
public Map<String,Object> getAttributes()
public Map<String,String> getDirectives()
public org.osgi.resource.Resource getResource()
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.