Java Code Examples for org.fourthline.cling.model.meta.Device#newInstance()
The following examples show how to use
org.fourthline.cling.model.meta.Device#newInstance() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MutableDevice.java From TVRemoteIME with GNU General Public License v2.0 | 6 votes |
public Device build(Device prototype, UDAVersion deviceVersion, URL baseURL) throws ValidationException { List<Device> embeddedDevicesList = new ArrayList(); for (MutableDevice embeddedDevice : embeddedDevices) { embeddedDevicesList.add(embeddedDevice.build(prototype, deviceVersion, baseURL)); } return prototype.newInstance( udn, deviceVersion, createDeviceType(), createDeviceDetails(baseURL), createIcons(), createServices(prototype), embeddedDevicesList ); }
Example 2
Source File: MutableDevice.java From DroidDLNA with GNU General Public License v3.0 | 6 votes |
public Device build(Device prototype, UDAVersion deviceVersion, URL baseURL) throws ValidationException { List<Device> embeddedDevicesList = new ArrayList(); for (MutableDevice embeddedDevice : embeddedDevices) { embeddedDevicesList.add(embeddedDevice.build(prototype, deviceVersion, baseURL)); } return prototype.newInstance( udn, deviceVersion, createDeviceType(), createDeviceDetails(baseURL), createIcons(), createServices(prototype), embeddedDevicesList ); }
Example 3
Source File: MutableService.java From TVRemoteIME with GNU General Public License v2.0 | 5 votes |
public Service build(Device prototype) throws ValidationException { return prototype.newInstance( serviceType, serviceId, descriptorURI, controlURI, eventSubscriptionURI, createActions(), createStateVariables() ); }
Example 4
Source File: MutableService.java From DroidDLNA with GNU General Public License v3.0 | 5 votes |
public Service build(Device prototype) throws ValidationException { return prototype.newInstance( serviceType, serviceId, descriptorURI, controlURI, eventSubscriptionURI, createActions(), createStateVariables() ); }