com.sybase.uep.bobclient.sync
Class Device

java.lang.Object
  extended by com.sybase.uep.bobclient.sync.Device
Direct Known Subclasses:
Device.UnknownDevice, RIMDevice

public abstract class Device
extends java.lang.Object

Returns information about the device that Mobile Sales is running on.


Nested Class Summary
static class Device.UnknownDevice
           
 
Constructor Summary
Device()
           
 
Method Summary
abstract  Repository createRepository()
          Creates a repository object appropriate to the device.
abstract  void dumpInfo(java.io.PrintStream out)
          Dumps information about the device to the given stream.
static java.lang.Class findClass(java.lang.String name)
          Finds and loads a given class.
static Device getDevice()
          Returns the singleton instance representing the current device.
abstract  java.lang.String getDeviceID()
          Returns the unique string, if known, that identifies this device.
 boolean isEmulator()
           
 boolean isLocalHTTP()
           
 void setEmulator(boolean emulator)
           
 void setLocalHTTP(boolean localHTTP)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Device

public Device()
Method Detail

createRepository

public abstract Repository createRepository()
Creates a repository object appropriate to the device.


dumpInfo

public abstract void dumpInfo(java.io.PrintStream out)
Dumps information about the device to the given stream.


findClass

public static java.lang.Class findClass(java.lang.String name)
Finds and loads a given class.


getDevice

public static Device getDevice()
Returns the singleton instance representing the current device.


getDeviceID

public abstract java.lang.String getDeviceID()
Returns the unique string, if known, that identifies this device.


isEmulator

public boolean isEmulator()

isLocalHTTP

public boolean isLocalHTTP()

setEmulator

public final void setEmulator(boolean emulator)

setLocalHTTP

public final void setLocalHTTP(boolean localHTTP)