eclipseme.core.model.impl
Class Device

java.lang.Object
  extended byeclipseme.core.model.impl.Device
All Implemented Interfaces:
IDevice

public class Device
extends java.lang.Object
implements IDevice

Primary implementation of the IDevice interface.

Note: This class/interface is part of an interim API that is still under development and expected to change before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken as the API evolves.

Copyright (c) 2003-2005 Craig Setera
All Rights Reserved.
Licensed under the Eclipse Public License - v 1.0


$Revision: 1.3 $
$Date: 2005/07/07 02:36:58 $

Author:
Craig Setera

Constructor Summary
Device(java.lang.String name)
          Construct a new device instance with the specified name.
 
Method Summary
 java.lang.String getDescription()
          Return the displayable description of this device.
 java.util.Properties getDeviceProperties()
          Return the properties associated with this device.
 java.lang.String getName()
          Return the name of this device.
 java.lang.String[] getProtectionDomains()
          Return the list of protection domains specified by this device.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Device

public Device(java.lang.String name)
Construct a new device instance with the specified name.

Parameters:
name - a non-null name of this device
Method Detail

getDescription

public java.lang.String getDescription()
Description copied from interface: IDevice
Return the displayable description of this device. This description will be displayed within the user interface. If this method returns a null value, the device's name will be used as the description instead.

Specified by:
getDescription in interface IDevice
Returns:
the description of this device or null if the device's name should be used instead.
See Also:
IDevice.getDescription()

getDeviceProperties

public java.util.Properties getDeviceProperties()
Description copied from interface: IDevice
Return the properties associated with this device. The available properties will vary from emulator to emulator.

Specified by:
getDeviceProperties in interface IDevice
Returns:
the properties associated with this device.
See Also:
IDevice.getDeviceProperties()

getName

public java.lang.String getName()
Description copied from interface: IDevice
Return the name of this device. This name will be used when interacting with the emulator. This name may or may not be displayed within the user interface, dependent on whether a display name is provided by this device. This method must never return null.

Specified by:
getName in interface IDevice
Returns:
the non-null name of this device.
See Also:
IDevice.getName()

getProtectionDomains

public java.lang.String[] getProtectionDomains()
Description copied from interface: IDevice
Return the list of protection domains specified by this device. Returning null from this method will imply that this device does not support protection domains.

Specified by:
getProtectionDomains in interface IDevice
Returns:
the list of protection domains or null if the device does not provide any protection domains.
See Also:
IDevice.getProtectionDomains()