org.teleal.cling.binding.xml
Class UDA10DeviceDescriptorBinderImpl
java.lang.Object
org.teleal.cling.binding.xml.UDA10DeviceDescriptorBinderImpl
- All Implemented Interfaces:
- DeviceDescriptorBinder
- Direct Known Subclasses:
- UDA10DeviceDescriptorBinderSAXImpl
public class UDA10DeviceDescriptorBinderImpl
- extends Object
- implements DeviceDescriptorBinder
Implementation based on DOM.
- Author:
- Christian Bauer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parser
protected final DeviceDOMParser parser
UDA10DeviceDescriptorBinderImpl
public UDA10DeviceDescriptorBinderImpl()
getParser
public DeviceDOMParser getParser()
describe
public <D extends Device> D describe(D undescribedDevice,
String descriptorXml)
throws DescriptorBindingException,
ValidationException
- Specified by:
describe
in interface DeviceDescriptorBinder
- Throws:
DescriptorBindingException
ValidationException
hydrateRoot
protected void hydrateRoot(MutableDeviceDescriptor descriptor,
Element rootElement)
throws DescriptorBindingException
- Throws:
DescriptorBindingException
hydrateSpecVersion
public void hydrateSpecVersion(MutableDeviceDescriptor descriptor,
Node specVersionNode)
throws DescriptorBindingException
- Throws:
DescriptorBindingException
hydrateDevice
public void hydrateDevice(MutableDeviceDescriptor descriptor,
Node deviceNode)
throws DescriptorBindingException
- Throws:
DescriptorBindingException
hydrateIconList
public void hydrateIconList(MutableDeviceDescriptor descriptor,
Node iconListNode)
throws DescriptorBindingException
- Throws:
DescriptorBindingException
hydrateServiceList
public void hydrateServiceList(MutableDeviceDescriptor descriptor,
Node serviceListNode)
throws DescriptorBindingException
- Throws:
DescriptorBindingException
hydrateDeviceList
public void hydrateDeviceList(MutableDeviceDescriptor descriptor,
Node deviceListNode)
throws DescriptorBindingException
- Throws:
DescriptorBindingException
generate
public String generate(Device deviceModel)
throws DescriptorBindingException
- Specified by:
generate
in interface DeviceDescriptorBinder
- Throws:
DescriptorBindingException
Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.