|
Mobile Tools for Java Release 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.mtj.core.model.configuration.Configuration
public class Configuration
This class contains configuration information for multi-configuration support. Now it contains "device" and "symbol set" information, and a boolean "active" to indicate if this configuration is the current active one. This class may contains more information if need in future.
| Field Summary | |
|---|---|
static String |
ATTR_ACTIVE
|
static String |
ATTR_DEVICEGROUP
|
static String |
ATTR_DEVICENAME
|
static String |
ATTR_NAME
|
static String |
ATTR_VALUE
|
static String |
ELEM_DEVICE
|
static String |
ELEM_SYMBOL
|
static String |
ELEM_SYMBOL_SET
|
static String |
ELEM_WORKSPACE_SYMBOLSET
|
| Constructor Summary | |
|---|---|
Configuration(Element configElement)
Construct Configuration from meta data XML file. |
|
Configuration(String name)
|
|
| Method Summary | |
|---|---|
void |
addConfigChangeListener(IConfigurationChangeListener listener)
|
boolean |
equals(Object obj)
If name equals, then configuration equals. |
void |
fireSymbolSetChanged()
|
IDevice |
getDevice()
|
String |
getName()
|
SymbolSet |
getSymbolSet()
All preprocessing related code should NOT use this method to get SymbolSet, instead, getSymbolSetForPreprocessing() should be used for preprocessing purpose. |
SymbolSet |
getSymbolSetForPreprocessing()
All preprocessing related function should use this method to get SymbolSet. |
List<SymbolDefinitionSet> |
getWorkspaceScopeSymbolSets()
|
int |
hashCode()
|
boolean |
isActive()
|
void |
removeConfigChangeListener(IConfigurationChangeListener listener)
Note:Since instance of configuration have a long life cycle (as long as the Midlet project), so we should remove listener manually when it no longer used. |
void |
setActive(boolean active)
|
void |
setDevice(IDevice device)
|
void |
setName(String name)
|
void |
setSymbolSet(SymbolSet symbolSet)
|
void |
setWorkspaceScopeSymbolSets(List<SymbolDefinitionSet> symbolSets)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ATTR_NAME
public static final String ATTR_ACTIVE
public static final String ELEM_DEVICE
public static final String ATTR_DEVICEGROUP
public static final String ATTR_DEVICENAME
public static final String ELEM_SYMBOL_SET
public static final String ELEM_WORKSPACE_SYMBOLSET
public static final String ELEM_SYMBOL
public static final String ATTR_VALUE
| Constructor Detail |
|---|
public Configuration(Element configElement)
throws PersistenceException
configElement - - The <configuration> xml element.
PersistenceExceptionpublic Configuration(String name)
| Method Detail |
|---|
public void addConfigChangeListener(IConfigurationChangeListener listener)
public boolean equals(Object obj)
equals in class Objectpublic void fireSymbolSetChanged()
public IDevice getDevice()
public String getName()
public SymbolSet getSymbolSet()
public SymbolSet getSymbolSetForPreprocessing()
public List<SymbolDefinitionSet> getWorkspaceScopeSymbolSets()
public int hashCode()
hashCode in class Objectpublic boolean isActive()
public void removeConfigChangeListener(IConfigurationChangeListener listener)
listener - public void setActive(boolean active)
public void setDevice(IDevice device)
public void setName(String name)
public void setSymbolSet(SymbolSet symbolSet)
public void setWorkspaceScopeSymbolSets(List<SymbolDefinitionSet> symbolSets)
public String toString()
toString in class Object
|
Mobile Tools for Java Release 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||