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