|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.devices.DeviceDatabase
public class DeviceDatabase
Manages the complete device database.
Copyright Enough Software 2005 - 2012
| Constructor Summary | |
|---|---|
DeviceDatabase()
Creates a new device database, please call init() right after the initialization. |
|
DeviceDatabase(File polishHome)
Creates a new device database. |
|
DeviceDatabase(Map properties,
File polishHome,
File projectHome,
File apisHome,
PolishProject polishProject,
Map inputStreamsByFileName,
Map customFilesByFileName)
Creates a new device database. |
|
| Method Summary | |
|---|---|
void |
clear()
Clears all referenced objects and databases from the memory. |
File |
getApisHome()
|
CapabilityManager |
getCapabilityManager()
|
ConfigurationManager |
getConfigurationManager()
|
Configuration[] |
getConfigurations()
|
Device |
getDevice(String identifier)
Retrieves the specified device or null when not found. |
DeviceManager |
getDeviceManager()
|
Device[] |
getDevices()
|
Device[] |
getDevices(Configuration configuration)
Retrieves all devices with support for the specified configuration. |
Device[] |
getDevices(Platform platform)
Retrieves all devices with support for the specified platform. |
DeviceGroupManager |
getGroupManager()
|
static DeviceDatabase |
getInstance(File polishHome)
Creates a new device database. |
static DeviceDatabase |
getInstance(Map properties,
File polishHome,
File projectHome,
File apisHome,
PolishProject polishProject,
Map inputStreamsByFileName,
Map customFilesByFileName)
Creates a new device database. |
Library[] |
getLibraries()
|
LibraryManager |
getLibraryManager()
|
PlatformManager |
getPlatformManager()
|
Platform[] |
getPlatforms()
|
File |
getPolishHome()
|
VendorManager |
getVendorManager()
|
void |
init(File polishHomeDir)
Initializes a new Device Database. |
void |
init(Map properties,
File polishHomeDir,
File projectHomeDir,
File apisHomeDir,
PolishProject polishProject,
Map inputStreamsByFileName,
Map customFilesByFileName)
Initializes a new device database. |
static Device |
loadDevice(File polishHome,
String identifier)
Loads only the specified device. |
static Device[] |
loadDevices(File polishHome,
String[] identifiers)
Loads only the specified devices. |
static void |
main(String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeviceDatabase()
init(Map, File, File, File, PolishProject, Map, Map)public DeviceDatabase(File polishHome)
polishHome - the installation directory of J2ME Polish
public DeviceDatabase(Map properties,
File polishHome,
File projectHome,
File apisHome,
PolishProject polishProject,
Map inputStreamsByFileName,
Map customFilesByFileName)
properties - configuration settings, like the optional wtk.home keypolishHome - the installation directory of J2ME PolishprojectHome - the project's directoryapisHome - the default import folder, can be null (in which case ${polish.home}/import is used)polishProject - basic settings, can be nullinputStreamsByFileName - the configured input streams, can be nullcustomFilesByFileName - user-defined XLM configuration files, can be null| Method Detail |
|---|
public void init(File polishHomeDir)
polishHomeDir - the polish.home setting
public void init(Map properties,
File polishHomeDir,
File projectHomeDir,
File apisHomeDir,
PolishProject polishProject,
Map inputStreamsByFileName,
Map customFilesByFileName)
properties - configuration settings, like the optional wtk.home keypolishHomeDir - the installation directory of J2ME PolishprojectHomeDir - the project's directoryapisHomeDir - the default import folder, can be null (in which case ${polish.home}/import is used)polishProject - basic settings, can be nullinputStreamsByFileName - the configured input streams, can be nullcustomFilesByFileName - user-defined XLM configuration files, can be nullpublic static final DeviceDatabase getInstance(File polishHome)
polishHome - the installation directory of J2ME Polish
BuildException - thrown when something went wrong.
public static final DeviceDatabase getInstance(Map properties,
File polishHome,
File projectHome,
File apisHome,
PolishProject polishProject,
Map inputStreamsByFileName,
Map customFilesByFileName)
properties - configuration settings, like the optional wtk.home keypolishHome - the installation directory of J2ME Polish. Must not be null.projectHome - the project's directoryapisHome - the default import folder, can be null (in which case ${polish.home}/import is used)polishProject - basic settings, can be nullinputStreamsByFileName - the configured input streams, can be nullcustomFilesByFileName - user-defined XML configuration files, can be null
BuildException - thrown when something went wrong.
public static Device[] loadDevices(File polishHome,
String[] identifiers)
polishHome - the location of the J2ME Polish installation diridentifiers - the identifiers of the devices like "Nokia/N70"
public static Device loadDevice(File polishHome,
String identifier)
polishHome - the location of the J2ME Polish installation diridentifier - the identifier of the devic like "Nokia/N70"
IllegalArgumentException - when the device with the given identifier was not foundpublic CapabilityManager getCapabilityManager()
public DeviceManager getDeviceManager()
public DeviceGroupManager getGroupManager()
public LibraryManager getLibraryManager()
public VendorManager getVendorManager()
public PlatformManager getPlatformManager()
public ConfigurationManager getConfigurationManager()
public File getPolishHome()
public File getApisHome()
public Configuration[] getConfigurations()
public Platform[] getPlatforms()
public Library[] getLibraries()
public Device[] getDevices()
public Device getDevice(String identifier)
identifier - the identifier like "Nokia/6630", "Generic/midp2"
public void clear()
public Device[] getDevices(Platform platform)
platform - the platform that should be supported by the device
public Device[] getDevices(Configuration configuration)
configuration - the configuration that should be supported by the device
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||