org.osgi.impl.bundle.obr.resource
Class CapabilityImpl
java.lang.Object
org.osgi.impl.bundle.obr.resource.CapabilityImpl
- All Implemented Interfaces:
- Capability
public class CapabilityImpl
- extends Object
- implements Capability
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CapabilityImpl
public CapabilityImpl(String name)
CapabilityImpl
public CapabilityImpl(org.xmlpull.v1.XmlPullParser parser)
throws Exception
- Throws:
Exception
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.