Class OSGiCapabilityAdapter
- java.lang.Object
-
- org.apache.felix.bundlerepository.impl.OSGiCapabilityAdapter
-
- All Implemented Interfaces:
Capability
public class OSGiCapabilityAdapter extends java.lang.Object implements Capability
-
-
Field Summary
Fields Modifier and Type Field Description private org.osgi.resource.Capability
capability
-
Fields inherited from interface org.apache.felix.bundlerepository.Capability
BUNDLE, EXECUTIONENVIRONMENT, FRAGMENT, PACKAGE, SERVICE
-
-
Constructor Summary
Constructors Constructor Description OSGiCapabilityAdapter(org.osgi.resource.Capability capability)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.util.Map<java.lang.String,java.lang.String>
getDirectives()
Return the directives of this capability.java.lang.String
getName()
Return the name of the capability.Property[]
getProperties()
Return the properties of this capabilityjava.util.Map<java.lang.String,java.lang.Object>
getPropertiesAsMap()
Return the map of properties.int
hashCode()
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
getName
public java.lang.String getName()
Description copied from interface:Capability
Return the name of the capability.- Specified by:
getName
in interfaceCapability
-
getProperties
public Property[] getProperties()
Description copied from interface:Capability
Return the properties of this capability- Specified by:
getProperties
in interfaceCapability
- Returns:
-
getPropertiesAsMap
public java.util.Map<java.lang.String,java.lang.Object> getPropertiesAsMap()
Description copied from interface:Capability
Return the map of properties.- Specified by:
getPropertiesAsMap
in interfaceCapability
- Returns:
- a Map
-
getDirectives
public java.util.Map<java.lang.String,java.lang.String> 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.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-