org.teleal.cling.model.meta
Class DeviceService<S extends Service>
java.lang.Object
org.teleal.cling.model.meta.DeviceService<S>
- All Implemented Interfaces:
- Validatable
- Direct Known Subclasses:
- LocalDeviceService
public class DeviceService<S extends Service>
- extends java.lang.Object
- implements Validatable
Defines the metadata of service as present in Device descriptor.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DeviceService
public DeviceService(ServiceType serviceType,
ServiceId serviceId,
java.net.URI descriptorURI,
java.net.URI controlURI,
java.net.URI eventSubscriptionURI)
DeviceService
public DeviceService(ServiceType serviceType,
ServiceId serviceId,
java.net.URI descriptorURI,
java.net.URI controlURI,
java.net.URI eventSubscriptionURI,
S service)
getServiceType
public ServiceType getServiceType()
getServiceId
public ServiceId getServiceId()
getDescriptorURI
public java.net.URI getDescriptorURI()
getControlURI
public java.net.URI getControlURI()
getEventSubscriptionURI
public java.net.URI getEventSubscriptionURI()
getService
public S getService()
getDevice
public Device getDevice()
createServiceReference
public ServiceReference createServiceReference()
validate
public java.util.List<ValidationError> validate()
- Specified by:
validate
in interface Validatable
prefixLocalURI
public java.net.URI prefixLocalURI(java.lang.String uri)
prefixLocalURI
public java.net.URI prefixLocalURI(Device device,
java.net.URI uri)
getLocalURIPrefix
public java.lang.String getLocalURIPrefix(Device device)
getLocalEventCallbackURI
public java.net.URI getLocalEventCallbackURI()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.