org.osgi.impl.bundle.obr.resource
Class CapabilityImpl

java.lang.Object
  extended by org.osgi.impl.bundle.obr.resource.CapabilityImpl
All Implemented Interfaces:
Capability

public class CapabilityImpl
extends Object
implements Capability


Constructor Summary
CapabilityImpl(String name)
           
CapabilityImpl(org.xmlpull.v1.XmlPullParser parser)
           
 
Method Summary
 void addProperty(String key, Object value)
           
 String getName()
          Return the name of the capability.
 Map getProperties()
          Return the set of properties.
 Tag toXML()
           
static Tag toXML(Capability capability)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CapabilityImpl

public CapabilityImpl(String name)

CapabilityImpl

public CapabilityImpl(org.xmlpull.v1.XmlPullParser parser)
               throws Exception
Throws:
Exception
Method Detail

addProperty

public void addProperty(String key,
                        Object value)

toXML

public Tag toXML()

toXML

public static Tag toXML(Capability capability)

getName

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

Specified by:
getName in interface Capability

getProperties

public Map getProperties()
Description copied from interface: Capability
Return the set of properties. Notice that the value of the properties is a list of values.

Specified by:
getProperties in interface Capability
Returns:
a Map


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.