org.teleal.cling.model.meta
Class Device<DI extends DeviceIdentity,D extends Device,S extends Service>
java.lang.Object
org.teleal.cling.model.meta.Device<DI,D,S>
- All Implemented Interfaces:
- Validatable
- Direct Known Subclasses:
- LocalDevice, RemoteDevice
public abstract class Device<DI extends DeviceIdentity,D extends Device,S extends Service>
- extends Object
- implements Validatable
Constructor Summary |
Device(DI identity)
|
Device(DI identity,
DeviceType type,
DeviceDetails details,
Icon[] icons,
DeviceService<S>[] deviceServices)
|
Device(DI identity,
DeviceType type,
DeviceDetails details,
Icon[] icons,
DeviceService<S>[] deviceServices,
D[] embeddedDevices)
|
Device(DI identity,
UDAVersion version,
DeviceType type,
DeviceDetails details,
Icon[] icons,
DeviceService<S>[] deviceServices,
D[] embeddedDevices)
|
Device
public Device(DI identity)
throws ValidationException
- Throws:
ValidationException
Device
public Device(DI identity,
DeviceType type,
DeviceDetails details,
Icon[] icons,
DeviceService<S>[] deviceServices)
throws ValidationException
- Throws:
ValidationException
Device
public Device(DI identity,
DeviceType type,
DeviceDetails details,
Icon[] icons,
DeviceService<S>[] deviceServices,
D[] embeddedDevices)
throws ValidationException
- Throws:
ValidationException
Device
public Device(DI identity,
UDAVersion version,
DeviceType type,
DeviceDetails details,
Icon[] icons,
DeviceService<S>[] deviceServices,
D[] embeddedDevices)
throws ValidationException
- Throws:
ValidationException
getPhase
public Phase getPhase()
getIdentity
public DI getIdentity()
getVersion
public UDAVersion getVersion()
getType
public DeviceType getType()
getDetails
public DeviceDetails getDetails()
getIcons
public Icon[] getIcons()
hasIcons
public boolean hasIcons()
getDeviceServices
public DeviceService<S>[] getDeviceServices()
hasDeviceServices
public boolean hasDeviceServices()
getEmbeddedDevices
public D[] getEmbeddedDevices()
hasEmbeddedDevices
public boolean hasEmbeddedDevices()
getParentDevice
public D getParentDevice()
getResources
public Resource[] getResources()
isRoot
public boolean isRoot()
getLocalResource
public Resource getLocalResource(URI localPathQuery)
getServiceTypes
public ServiceType[] getServiceTypes()
getDeviceServices
public List<DeviceService<S>> getDeviceServices(ServiceType serviceType)
getFirstDeviceService
public DeviceService<S> getFirstDeviceService(ServiceType serviceType)
getDeviceService
public DeviceService<S> getDeviceService(ServiceId serviceId)
getDisplayString
public String getDisplayString()
getFirstIcon
public byte[] getFirstIcon()
getLocalURIPrefix
public String getLocalURIPrefix()
prefixLocalURI
public URI prefixLocalURI(URI uri)
validate
public List<ValidationError> validate()
- Specified by:
validate
in interface Validatable
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
newInstance
public abstract D newInstance(UDN udn,
UDAVersion version,
DeviceType type,
DeviceDetails details,
Icon[] icons,
DeviceService<S>[] deviceServices,
List<D> embeddedDevices)
throws ValidationException
- Throws:
ValidationException
discoverResources
protected abstract Resource[] discoverResources()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.