org.teleal.cling.binding.xml
Class UDA10DeviceDescriptorBinderImpl

java.lang.Object
  extended by org.teleal.cling.binding.xml.UDA10DeviceDescriptorBinderImpl
All Implemented Interfaces:
DeviceDescriptorBinder

public class UDA10DeviceDescriptorBinderImpl
extends Object
implements DeviceDescriptorBinder


Field Summary
protected  DeviceDOMParser parser
           
 
Constructor Summary
UDA10DeviceDescriptorBinderImpl()
           
 
Method Summary
<D extends Device>
D
describe(D undescribedDevice, String descriptorXml)
           
 String generate(Device deviceModel)
           
 DeviceDOMParser getParser()
           
 void hydrateDevice(MutableDeviceDescriptor descriptor, DeviceElement deviceElement)
           
 void hydrateDeviceList(MutableDeviceDescriptor descriptor, DeviceElement devicesElement)
           
 void hydrateIconList(MutableDeviceDescriptor descriptor, DeviceElement iconsElement)
           
protected  void hydrateRoot(MutableDeviceDescriptor descriptor, DeviceElement rootElement)
           
 void hydrateServiceList(MutableDeviceDescriptor descriptor, DeviceElement servicesElement)
           
 void hydrateSpecVersion(MutableDeviceDescriptor descriptor, DeviceElement specVersionElement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parser

protected final DeviceDOMParser parser
Constructor Detail

UDA10DeviceDescriptorBinderImpl

public UDA10DeviceDescriptorBinderImpl()
Method Detail

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,
                           DeviceElement rootElement)
                    throws DescriptorBindingException,
                           org.teleal.common.xml.ParserException
Throws:
DescriptorBindingException
org.teleal.common.xml.ParserException

hydrateSpecVersion

public void hydrateSpecVersion(MutableDeviceDescriptor descriptor,
                               DeviceElement specVersionElement)
                        throws DescriptorBindingException,
                               org.teleal.common.xml.ParserException
Throws:
DescriptorBindingException
org.teleal.common.xml.ParserException

hydrateDevice

public void hydrateDevice(MutableDeviceDescriptor descriptor,
                          DeviceElement deviceElement)
                   throws DescriptorBindingException
Throws:
DescriptorBindingException

hydrateIconList

public void hydrateIconList(MutableDeviceDescriptor descriptor,
                            DeviceElement iconsElement)
                     throws DescriptorBindingException
Throws:
DescriptorBindingException

hydrateServiceList

public void hydrateServiceList(MutableDeviceDescriptor descriptor,
                               DeviceElement servicesElement)
                        throws DescriptorBindingException
Throws:
DescriptorBindingException

hydrateDeviceList

public void hydrateDeviceList(MutableDeviceDescriptor descriptor,
                              DeviceElement devicesElement)
                       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.