Class CapabilityImpl
java.lang.Object
org.apache.felix.bundlerepository.impl.CapabilityImpl
- All Implemented Interfaces:
Capability
-
Field Summary
Fields inherited from interface Capability
BUNDLE, EXECUTIONENVIRONMENT, FRAGMENT, PACKAGE, SERVICE -
Constructor Summary
ConstructorsConstructorDescriptionCapabilityImpl(String name) CapabilityImpl(String name, PropertyImpl[] properties) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDirective(String key, String value) voidaddProperty(String name, String value) voidaddProperty(String name, String type, String value) voidaddProperty(Property prop) Return the directives of this capability.getName()Return the name of the capability.Property[]Return the properties of this capabilityReturn the map of properties.voidtoString()
-
Constructor Details
-
CapabilityImpl
public CapabilityImpl() -
CapabilityImpl
-
CapabilityImpl
-
-
Method Details
-
getName
Description copied from interface:CapabilityReturn the name of the capability.- Specified by:
getNamein interfaceCapability
-
setName
-
getPropertiesAsMap
Description copied from interface:CapabilityReturn the map of properties.- Specified by:
getPropertiesAsMapin interfaceCapability- Returns:
- a Mapinvalid input: '<'String,Object>
-
getProperties
Description copied from interface:CapabilityReturn the properties of this capability- Specified by:
getPropertiesin interfaceCapability- Returns:
-
addProperty
-
addProperty
-
addProperty
-
toString
-
addDirective
-
getDirectives
Description copied from interface:CapabilityReturn the directives of this capability. The returned map can not be modified.- Specified by:
getDirectivesin interfaceCapability- Returns:
- a Map of directives or an empty map there are no directives.
-