Mobile Tools for Java
Release 1.0

org.eclipse.mtj.toolkit.uei.model.properties
Enum DeviceSpecificProperties

java.lang.Object
  extended by java.lang.Enum<DeviceSpecificProperties>
      extended by org.eclipse.mtj.toolkit.uei.model.properties.DeviceSpecificProperties
All Implemented Interfaces:
Serializable, Comparable<DeviceSpecificProperties>

public enum DeviceSpecificProperties
extends Enum<DeviceSpecificProperties>

When the emulator runs with the -Xquery option, information describing the emulator and its capabilities are sent to standard output. The general format is that of a properties file.

The properties describing information for a single devices are represented by this enum.

The device-specific properties start with the device name. The device name must be one of the values from the device.list property.

Since:
0.9.1

Enum Constant Summary
APIS
          Property Key: apis
Value: Contains the same information, in the same format, as device-name.bootclasspath and also includes any earlier versions of APIs supported by this device.
BOOTCLASSPATH
          Property Key: bootclasspath
Value: A list of API files that must be used to build a MIDlet that runs on this device.
DESCRIPTION
          Property Key: description
Value: The device description.
SCREEN_BITDEPTH
          Property Key: screen.bitDepth
Value: The number of bits that describe a pixel's color.
SCREEN_HEIGHT
          Property Key: screen.height
Value: The height of the device screen in pixels.
SCREEN_ISCOLOR
          Property Key: screen.isColor
Value: true for color screens, false for grayscale.
SCREEN_ISTOUCH
          Property Key: screen.isTouch
Value: true for screens that support pointer events, false otherwise.
SCREEN_WIDTH
          Property Key: screen.width
Value: The width of the device screen in pixels.
SECURITY_DOMAINS
          Property Key: security.domains
Value: Has the same meaning and syntax as security.domains, but it applies to a specific device and overrides the value of security.domains.
UEI_ARGUMENTS
          Property Key: uei.arguments
Value: Has the same meaning and syntax as uei.arguments, but it applies to a specific device and overrides the value of uei.arguments.
VERSION_CONFIGURATION
          Property Key: version.configuration
Value: The configuration supported by this device.
VERSION_PROFILE
          Property Key: version.profile
Value: A list of one or more profiles supported by this device.
 
Method Summary
 String getDeviceSpecificProperties(String deviceName)
          Return the device-specific properties starting with the device name.
 UEIImplementationReq getImplementationRequirement()
          Return the implementation requirement for this property.
 String toString()
           
static DeviceSpecificProperties valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DeviceSpecificProperties[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

APIS

public static final DeviceSpecificProperties APIS
Property Key: apis
Value: Contains the same information, in the same format, as device-name.bootclasspath and also includes any earlier versions of APIs supported by this device. This enables an IDE to select which versions of the API to use to build an application. If this property is not present, its value is the same as device-name.bootclasspath.


BOOTCLASSPATH

public static final DeviceSpecificProperties BOOTCLASSPATH
Property Key: bootclasspath
Value: A list of API files that must be used to build a MIDlet that runs on this device.


DESCRIPTION

public static final DeviceSpecificProperties DESCRIPTION
Property Key: description
Value: The device description.


SCREEN_BITDEPTH

public static final DeviceSpecificProperties SCREEN_BITDEPTH
Property Key: screen.bitDepth
Value: The number of bits that describe a pixel's color. For grayscale screens, this property describes how many bits are used to determine the level of gray.


SCREEN_HEIGHT

public static final DeviceSpecificProperties SCREEN_HEIGHT
Property Key: screen.height
Value: The height of the device screen in pixels.


SCREEN_ISCOLOR

public static final DeviceSpecificProperties SCREEN_ISCOLOR
Property Key: screen.isColor
Value: true for color screens, false for grayscale.


SCREEN_ISTOUCH

public static final DeviceSpecificProperties SCREEN_ISTOUCH
Property Key: screen.isTouch
Value: true for screens that support pointer events, false otherwise.


SCREEN_WIDTH

public static final DeviceSpecificProperties SCREEN_WIDTH
Property Key: screen.width
Value: The width of the device screen in pixels.


SECURITY_DOMAINS

public static final DeviceSpecificProperties SECURITY_DOMAINS
Property Key: security.domains
Value: Has the same meaning and syntax as security.domains, but it applies to a specific device and overrides the value of security.domains.


UEI_ARGUMENTS

public static final DeviceSpecificProperties UEI_ARGUMENTS
Property Key: uei.arguments
Value: Has the same meaning and syntax as uei.arguments, but it applies to a specific device and overrides the value of uei.arguments.


VERSION_CONFIGURATION

public static final DeviceSpecificProperties VERSION_CONFIGURATION
Property Key: version.configuration
Value: The configuration supported by this device. A device can support only one configuration. Emulators that support multiple configurations can do so by providing separate devices for each. Acceptable configuration names are:


VERSION_PROFILE

public static final DeviceSpecificProperties VERSION_PROFILE
Property Key: version.profile
Value: A list of one or more profiles supported by this device. Multiple items are separated by commas. Acceptable profile names are:

Method Detail

values

public static final DeviceSpecificProperties[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(DeviceSpecificProperties c : DeviceSpecificProperties.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static DeviceSpecificProperties valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name

getDeviceSpecificProperties

public String getDeviceSpecificProperties(String deviceName)
Return the device-specific properties starting with the device name.

Parameters:
deviceName - the device name. The device name must be one of the values from the device.list property.
Returns:
the device-specific properties.

getImplementationRequirement

public UEIImplementationReq getImplementationRequirement()
Return the implementation requirement for this property.

Returns:
UEIImplementationReq.REQUIRED if this property must be implemented or UEIImplementationReq.OPTIONAL if not.

toString

public String toString()
Overrides:
toString in class Enum<DeviceSpecificProperties>

Mobile Tools for Java
Release 1.0