Class CapabilityImpl

java.lang.Object
org.apache.felix.bundlerepository.impl.CapabilityImpl
All Implemented Interfaces:
Capability

public class CapabilityImpl extends Object implements Capability
  • Constructor Details

    • CapabilityImpl

      public CapabilityImpl()
    • CapabilityImpl

      public CapabilityImpl(String name)
    • CapabilityImpl

      public CapabilityImpl(String name, PropertyImpl[] properties)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Capability
      Return the name of the capability.
      Specified by:
      getName in interface Capability
    • setName

      public void setName(String name)
    • getPropertiesAsMap

      public Map<String,Object> getPropertiesAsMap()
      Description copied from interface: Capability
      Return the map of properties.
      Specified by:
      getPropertiesAsMap in interface Capability
      Returns:
      a Map<String,Object>
    • getProperties

      public Property[] getProperties()
      Description copied from interface: Capability
      Return the properties of this capability
      Specified by:
      getProperties in interface Capability
      Returns:
    • addProperty

      public void addProperty(Property prop)
    • addProperty

      public void addProperty(String name, String value)
    • addProperty

      public void addProperty(String name, String type, String value)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • addDirective

      public void addDirective(String key, String value)
    • getDirectives

      public Map<String,String> getDirectives()
      Description copied from interface: Capability
      Return the directives of this capability. The returned map can not be modified.
      Specified by:
      getDirectives in interface Capability
      Returns:
      a Map of directives or an empty map there are no directives.