org.apache.felix.upnp.tester.discovery
Class DeviceNode

java.lang.Object
  extended by org.apache.felix.upnp.tester.discovery.DeviceNode

public class DeviceNode
extends Object


Constructor Summary
DeviceNode(ServiceReference sr)
           
 
Method Summary
 void attach(DeviceNode node)
           
 boolean contains(String udn)
           
 DeviceNode dethatch(String name)
           
 boolean equals(String udn)
           
 Collection getAllChildren()
           
 Collection getChildren()
           
 UPnPDevice getDevice(BundleContext ctx)
           
 ServiceReference getReference()
           
 DeviceNode isAttachable(DeviceNode node)
           
 boolean isComplete()
           
 boolean isLeaf()
           
 boolean isRoot()
           
 void print()
           
 DeviceNode search(String name)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeviceNode

public DeviceNode(ServiceReference sr)
Method Detail

getReference

public ServiceReference getReference()

getDevice

public UPnPDevice getDevice(BundleContext ctx)

attach

public void attach(DeviceNode node)

dethatch

public DeviceNode dethatch(String name)

getAllChildren

public Collection getAllChildren()

getChildren

public Collection getChildren()

search

public DeviceNode search(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(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(String udn)

toString

public String toString()
Overrides:
toString in class Object

isLeaf

public boolean isLeaf()

print

public void print()


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.