Capabilitypublic class CapabilityImpl extends Object implements Capability
BUNDLE, EXECUTIONENVIRONMENT, FRAGMENT, PACKAGE, SERVICE| Constructor | Description |
|---|---|
CapabilityImpl() |
|
CapabilityImpl(String name) |
|
CapabilityImpl(String name,
PropertyImpl[] properties) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addDirective(String key,
String value) |
|
void |
addProperty(String name,
String value) |
|
void |
addProperty(String name,
String type,
String value) |
|
void |
addProperty(Property prop) |
|
Map<String,String> |
getDirectives() |
Return the directives of this capability.
|
String |
getName() |
Return the name of the capability.
|
Property[] |
getProperties() |
Return the properties of this capability
|
Map<String,Object> |
getPropertiesAsMap() |
Return the map of properties.
|
void |
setName(String name) |
|
String |
toString() |
public CapabilityImpl()
public CapabilityImpl(String name)
public CapabilityImpl(String name, PropertyImpl[] properties)
public String getName()
CapabilitygetName in interface Capabilitypublic void setName(String name)
public Map<String,Object> getPropertiesAsMap()
CapabilitygetPropertiesAsMap in interface Capabilitypublic Property[] getProperties()
CapabilitygetProperties in interface Capabilitypublic void addProperty(Property prop)
public Map<String,String> getDirectives()
CapabilitygetDirectives in interface CapabilityCopyright © 2018. All rights reserved.