Capability
public 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()
Capability
getName
in interface Capability
public void setName(String name)
public Map<String,Object> getPropertiesAsMap()
Capability
getPropertiesAsMap
in interface Capability
public Property[] getProperties()
Capability
getProperties
in interface Capability
public void addProperty(Property prop)
public Map<String,String> getDirectives()
Capability
getDirectives
in interface Capability
Copyright © 2018. All rights reserved.