org.apache.felix.upnp.tester.discovery
Class DeviceNode
java.lang.Object
org.apache.felix.upnp.tester.discovery.DeviceNode
public class DeviceNode
- extends java.lang.Object
Constructor Summary |
DeviceNode(org.osgi.framework.ServiceReference sr)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DeviceNode
public DeviceNode(org.osgi.framework.ServiceReference sr)
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()
print
public void print()