org.apache.felix.upnp.basedriver.export
Class DeviceNode
java.lang.Object
org.apache.felix.upnp.basedriver.export.DeviceNode
public class DeviceNode
- extends Object
DeviceNode
public DeviceNode(ServiceReference sr)
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()
- Returns:
- true if and only
if the Device doesn't have embedded Device
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.