com.sap.portal.ds.objects

Class DeviceType

java.lang.Object
  extended by com.sap.portal.ds.objects.DeviceType

public class DeviceType
extends Object

DeviceType is an attribute of IDeviceGroup
The fixed list of DeviceTypes: DESKTOP, SMART_PHONE, TABLET.
To get all DeviceTypes, use: getAllKnownDeviceTypes()


Field Summary
static DeviceType DESKTOP
          Denotes the desktop device type
static DeviceType SMART_PHONE
          Denotes the smartphone device type
static DeviceType TABLET
          Denotes the tablet device type
 
Method Summary
static Set<DeviceType> getAllKnownDeviceTypes()
          Returns all device types
static DeviceType getDeviceType(String deviceTypeId)
          Returns the DeviceType by DeviceType Id
 String getDisplayName(Locale locale)
          Returns the name of the device type, according to locale
 String getId()
          Returns the device type Id
 String getResourceBundleKeyOfDeviceType()
          Returns the resource bundle key of device type
 String toString()
          Returns the DeviceType Id as a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DESKTOP

public static final DeviceType DESKTOP
Denotes the desktop device type


TABLET

public static final DeviceType TABLET
Denotes the tablet device type


SMART_PHONE

public static final DeviceType SMART_PHONE
Denotes the smartphone device type

Method Detail

getDisplayName

public String getDisplayName(Locale locale)
Returns the name of the device type, according to locale

Parameters:
locale - - must not be null
Returns:
DeviceType name according to the locale

getId

public String getId()
Returns the device type Id

Returns:
DeviceType Id

getResourceBundleKeyOfDeviceType

public String getResourceBundleKeyOfDeviceType()
Returns the resource bundle key of device type

Returns:
Resource bundle key of this DeviceType

getDeviceType

public static DeviceType getDeviceType(String deviceTypeId)
Returns the DeviceType by DeviceType Id

Parameters:
deviceTypeId - - the Id of the DeviceType to get
Returns:
DeviceType that matches the deviceTypeId,
null - if no DeviceType matches the deviceTypeId

toString

public String toString()
Returns the DeviceType Id as a string

Overrides:
toString in class Object

getAllKnownDeviceTypes

public static Set<DeviceType> getAllKnownDeviceTypes()
Returns all device types

Returns:
Set of the fixed list of device types
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-RUNTIME [sap.com] tc/ep/navigation/api api EP-PIN


Copyright 2015 SAP AG Complete Copyright Notice