|
Mobile Tools for Java Release 1.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISymbolSetFactory
This API provides a mechanism to create symbols set. Two different ways are available: create from a device and create from a j2mepolish device file. The first one will be based on the device properties and the device libraries. The later is based on j2mepolish device format and will create an array of symbol sets for each device that is available on the database.
Clients must use MTJCore.getSymbolSetFactory()
to retrieve an
ISymbolSetFactory
instance.
Field Summary | |
---|---|
static String |
DEVICE_DB_J2MEPOLISH_FILE
Constant that represents the type j2mepolish from file |
static String |
DEVICE_DB_J2MEPOLISH_JAR
Constant that represents the type j2mepolish from antenna jar |
Method Summary | |
---|---|
ISymbol |
createSymbol(String name,
String value)
Creates a new symbol based on the given name and value. |
ISymbolSet |
createSymbolSet(String name)
Create a symbol set with the given name. |
List<ISymbolSet> |
createSymbolSetFromDataBase(String type,
IPath databasePath,
IProgressMonitor monitor)
Creates a list of symbol sets based on a device data base. |
ISymbolSet |
createSymbolSetFromDevice(IDevice device)
Create SymbolSet from device. |
ISymbolSet |
createSymbolSetFromProperties(Properties properties)
Create SymbolSet from properties. |
Field Detail |
---|
static final String DEVICE_DB_J2MEPOLISH_FILE
static final String DEVICE_DB_J2MEPOLISH_JAR
Method Detail |
---|
ISymbol createSymbol(String name, String value)
name
- the symbol name. This is case-sensitive and must not be
null
or an empty String ""
.value
- the symbol value.
ISymbolSet createSymbolSet(String name)
name
- the SymbolSet name. This is case-sensitive and must not be
null
or an empty String ""
.
List<ISymbolSet> createSymbolSetFromDataBase(String type, IPath databasePath, IProgressMonitor monitor) throws IOException
type
- a string that represents the type of the database to be
imported. Currently MTJ supports only J2MEPolish database (
DEVICE_DB_J2MEPOLISH_JAR
or
DEVICE_DB_J2MEPOLISH_FILE
).databasePath
- path of the database.monitor
- a progress monitor, or null
if progress
reporting is not desired.
IOException
- if failed to read the database.ISymbolSet createSymbolSetFromDevice(IDevice device)
IDevice.getName()
.
device
- the device instance to be used as base to the new
SymbolSet.
ISymbolSet createSymbolSetFromProperties(Properties properties)
properties
- the properties to be used as base to the new SymbolSet.
|
Mobile Tools for Java Release 1.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |