org.apache.felix.upnp.basedriver.export
Class DeviceNode

java.lang.Object
  extended by org.apache.felix.upnp.basedriver.export.DeviceNode

public class DeviceNode
extends java.lang.Object


Constructor Summary
DeviceNode(org.osgi.framework.ServiceReference sr)
           
 
Method Summary
 void attach(DeviceNode node)
           
 boolean contains(java.lang.String udn)
           
 DeviceNode dethatch(java.lang.String name)
           
 boolean equals(java.lang.String udn)
           
 java.util.Collection getAllChildren()
           
 java.util.Collection getChildren()
           
 org.osgi.service.upnp.UPnPDevice getDevice(org.osgi.framework.BundleContext ctx)
           
 org.osgi.framework.ServiceReference getReference()
           
 DeviceNode isAttachable(DeviceNode node)
           
 boolean isComplete()
           
 boolean isLeaf()
           
 boolean isRoot()
           
 DeviceNode search(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

DeviceNode

public DeviceNode(org.osgi.framework.ServiceReference sr)
Method Detail

getReference

public org.osgi.framework.ServiceReference getReference()

getDevice

public org.osgi.service.upnp.UPnPDevice getDevice(org.osgi.framework.BundleContext ctx)

attach

public void attach(DeviceNode node)

dethatch

public DeviceNode dethatch(java.lang.String name)

getAllChildren

public java.util.Collection getAllChildren()

getChildren

public java.util.Collection getChildren()

search

public DeviceNode search(java.lang.String name)
Parameters:
name - String that contain the UDN to look for
Returns:
return a DeviceNode that have the UDN equals to name and
if there is any DeviceNode with the proper UDN value return null

contains

public boolean contains(java.lang.String udn)
Parameters:
udn -
Returns:
true if and only if this DeviceNode contains a DeviceNode with UDN equals to passed argument or if its USN is equal to passed argument

isComplete

public boolean isComplete()

isAttachable

public DeviceNode isAttachable(DeviceNode node)

isRoot

public boolean isRoot()

equals

public boolean equals(java.lang.String udn)

toString

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

isLeaf

public boolean isLeaf()
Returns:
true if and only if the Device doesn't have embedded Device