|
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.preprocessor.SymbolDefinitionSetRegistry
public class SymbolDefinitionSetRegistry
Provides a registry of SymbolDefinitionSet instances for use by various parts of the core system.
| Field Summary | |
|---|---|
static SymbolDefinitionSetRegistry |
singleton
Singleton instance of the registry |
| Method Summary | |
|---|---|
void |
addDefinitionSet(SymbolDefinitionSet definitions)
Add the specified SymbolDefinitions object to the registry of definitions. |
SymbolDefinitionSet |
addNewDefinitionSet(String name)
Create and add a new SymbolDefinitions object to the registry of definitions with the specified name. |
void |
addSymbolDefinitionSetChangeListener(ISymbolDefinitionSetChangeListener listener)
|
void |
clear()
Clear all of the registered SymbolDefinitions objects. |
String[] |
getAllDefinitionSetNames()
Return all of the definition names registered. |
SymbolDefinitionSet[] |
getAllSetDefinitions()
Return all of the definitions registered. |
SymbolDefinitionSet |
getSymbolDefinitionSet(String name)
Return the SymbolDefinitions instance registered with the specified name or null if the object cannot be found. |
void |
load()
Load the contents of the symbol definitions registry from the storage file in the plug-in state location. |
void |
loadUsing(IPersistenceProvider persistenceProvider)
Load the state of this object using the specified persistence state information. |
void |
removeDefinitionSet(String setName)
Remove the specified definition set from the registry. |
void |
removeDefinitionSet(SymbolDefinitionSet set)
Remove the specified definition set from the registry. |
void |
removeSymbolDefinitionSetChangeListener(ISymbolDefinitionSetChangeListener listener)
|
void |
store()
Store out the contents of the registry into the standard device storage file in the plug-in state location. |
void |
storeUsing(IPersistenceProvider persistenceProvider)
Save the state of this object using the specified persistence state information. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final SymbolDefinitionSetRegistry singleton
| Method Detail |
|---|
public void addDefinitionSet(SymbolDefinitionSet definitions)
throws PersistenceException
definitions -
PersistenceException
IllegalStateException - if the provided definition set has a
null name.
public SymbolDefinitionSet addNewDefinitionSet(String name)
throws PersistenceException
name -
PersistenceExceptionpublic void addSymbolDefinitionSetChangeListener(ISymbolDefinitionSetChangeListener listener)
listener -
public void clear()
throws PersistenceException
PersistenceException
public String[] getAllDefinitionSetNames()
throws PersistenceException
PersistenceException
public SymbolDefinitionSet[] getAllSetDefinitions()
throws PersistenceException
PersistenceException
public SymbolDefinitionSet getSymbolDefinitionSet(String name)
throws PersistenceException
null if the object cannot be found.
name -
PersistenceException
public void load()
throws PersistenceException
PersistenceException
public void loadUsing(IPersistenceProvider persistenceProvider)
throws PersistenceException
IPersistable
loadUsing in interface IPersistablePersistenceExceptionIPersistable.loadUsing(org.eclipse.mtj.core.persistence.IPersistenceProvider)public void removeDefinitionSet(String setName)
setName - public void removeDefinitionSet(SymbolDefinitionSet set)
set - public void removeSymbolDefinitionSetChangeListener(ISymbolDefinitionSetChangeListener listener)
listener -
public void store()
throws PersistenceException,
TransformerException,
IOException
PersistenceException
TransformerException
IOException
public void storeUsing(IPersistenceProvider persistenceProvider)
throws PersistenceException
IPersistable
storeUsing in interface IPersistablePersistenceExceptionIPersistable.storeUsing(org.eclipse.mtj.core.persistence.IPersistenceProvider)
|
Mobile Tools for Java Release 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||