org.apache.felix.obr.plugin
Class Capability

java.lang.Object
  extended by org.apache.felix.obr.plugin.Capability

public class Capability
extends java.lang.Object

This class describe and store capability node.

Author:
Felix Project Team

Constructor Summary
Capability()
           
 
Method Summary
 void addP(PElement pelement)
          add one element in List.
 java.lang.String getName()
          get the name attribute.
 org.w3c.dom.Node getNode(org.w3c.dom.Document father)
          transform this object to Node.
 java.util.List getP()
          return the capabilities.
 void setName(java.lang.String name)
          set the name attribute.
 void setP(java.util.List mp)
          set the capabilities.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Capability

public Capability()
Method Detail

getName

public java.lang.String getName()
get the name attribute.

Returns:
name attribute

setName

public void setName(java.lang.String name)
set the name attribute.

Parameters:
name - new name value

getP

public java.util.List getP()
return the capabilities.

Returns:
List of PElement

setP

public void setP(java.util.List mp)
set the capabilities.

Parameters:
mp - List of PElement

addP

public void addP(PElement pelement)
add one element in List.

Parameters:
pelement - PElement

getNode

public org.w3c.dom.Node getNode(org.w3c.dom.Document father)
transform this object to Node.

Parameters:
father - father document for create Node
Returns:
node