org.apache.felix.bundlerepository.impl
Class CapabilityImpl

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

public class CapabilityImpl
extends java.lang.Object
implements Capability


Field Summary
 
Fields inherited from interface org.apache.felix.bundlerepository.Capability
BUNDLE, EXECUTIONENVIRONMENT, FRAGMENT, PACKAGE, SERVICE
 
Constructor Summary
CapabilityImpl()
           
CapabilityImpl(java.lang.String name)
           
CapabilityImpl(java.lang.String name, PropertyImpl[] properties)
           
 
Method Summary
 void addProperty(Property prop)
           
 void addProperty(java.lang.String name, java.lang.String value)
           
 void addProperty(java.lang.String name, java.lang.String type, java.lang.String value)
           
 java.lang.String getName()
          Return the name of the capability.
 Property[] getProperties()
          Return the properties of this capability
 java.util.Map getPropertiesAsMap()
          Return the map of properties.
 void setName(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CapabilityImpl

public CapabilityImpl()

CapabilityImpl

public CapabilityImpl(java.lang.String name)

CapabilityImpl

public CapabilityImpl(java.lang.String name,
                      PropertyImpl[] properties)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Capability
Return the name of the capability.

Specified by:
getName in interface Capability

setName

public void setName(java.lang.String name)

getPropertiesAsMap

public java.util.Map getPropertiesAsMap()
Description copied from interface: Capability
Return the map of properties.

Specified by:
getPropertiesAsMap in interface Capability
Returns:
a Map

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(java.lang.String name,
                        java.lang.String value)

addProperty

public void addProperty(java.lang.String name,
                        java.lang.String type,
                        java.lang.String value)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011. All Rights Reserved.