|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.upnp.sample.binaryLight.devices.LightDevice
public class LightDevice
Field Summary |
---|
Fields inherited from interface org.osgi.service.upnp.UPnPDevice |
---|
CHILDREN_UDN, DEVICE_CATEGORY, FRIENDLY_NAME, ID, MANUFACTURER, MANUFACTURER_URL, MATCH_GENERIC, MATCH_MANUFACTURER_MODEL, MATCH_MANUFACTURER_MODEL_REVISION, MATCH_MANUFACTURER_MODEL_REVISION_SERIAL, MATCH_TYPE, MODEL_DESCRIPTION, MODEL_NAME, MODEL_NUMBER, MODEL_URL, PARENT_UDN, PRESENTATION_URL, SERIAL_NUMBER, TYPE, UDN, UPC, UPNP_EXPORT |
Constructor Summary | |
---|---|
LightDevice(BundleContext context)
|
Method Summary | |
---|---|
void |
close()
|
Dictionary |
getDescriptions(String locale)
Get a set of localized UPnP properties. |
UPnPIcon[] |
getIcons(String locale)
Lists all icons for this device in a given locale. |
LightModel |
getModel()
|
UPnPService |
getService(String serviceId)
Locates a specific service by its service id. |
UPnPService[] |
getServices()
Lists all services provided by this device. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LightDevice(BundleContext context)
Method Detail |
---|
public LightModel getModel()
public UPnPService getService(String serviceId)
UPnPDevice
getService
in interface UPnPDevice
serviceId
- The service id
public UPnPService[] getServices()
UPnPDevice
getServices
in interface UPnPDevice
null
if no services are
available.public UPnPIcon[] getIcons(String locale)
UPnPDevice
getIcons
in interface UPnPDevice
locale
- A language tag as defined by RFC 1766 and maintained by ISO
639. Examples include "de
", "en
" or "
en-US
". The default locale of the device is specified
by passing a null
argument.
public Dictionary getDescriptions(String locale)
UPnPDevice
Not all properties might be available in all locales. This method does not substitute missing properties with their default locale versions.
getDescriptions
in interface UPnPDevice
locale
- A language tag as defined by RFC 1766 and maintained by ISO
639. Examples include "de
", "en
" or "
en-US
". The default locale of the device is specified
by passing a null
argument.
public void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |