|
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 ISymbolSetRegistry
The SymbolSet registry is the main entry point that is used to manage the SymbolSets that are currently available.
Clients must use MTJCore.getSymbolSetRegistry()
method to retrieve an
instance of ISymbolSetRegistry.
Field Summary |
---|
Fields inherited from interface org.eclipse.mtj.core.persistence.IPersistable |
---|
CLASS_PERSISTABLE_ATTRIBUTE, ID_PERSISTABLE_ATTRIBUTE, KEY_PERSISTABLE_ATTRIBUTE, PROPERTY_PERSISTABLE_ELEMENT, REFID_PERSISTABLE_ATTRIBUTE, VALUE_PERSISTABLE_ATTRIBUTE |
Method Summary | |
---|---|
void |
addSymbolSet(ISymbolSet symbolset)
Add the specified SymbolSet object to the registry of SymbolSets. |
void |
addSymbolSet(List<ISymbolSet> ss)
Add an array of SymbolSet to the registry |
void |
addSymbolSetRegistryChangeListener(ISymbolSetRegistryChangeListener listener)
Adds the listener to the collection of listeners who will be notified when the SymbolSetRegistry state changes. |
void |
clear()
Clear all of the registered SymbolSet objects. |
String[] |
getAllSymbolSetNames()
Return all of the SymbolSet names registered. |
ISymbolSet[] |
getAllSymbolSets()
Returns an array of the SymbolSets contained in this registry. |
ISymbolSet |
getSymbolSet(String name)
Return the SymbolSet instance registered with the specified name or null if the object cannot be found. |
void |
load()
Load the contents of the symbol SymbolSetRegistry from the storage file in the plug-in state location. |
void |
removeSymbolSet(String setName)
Remove the specified SymbolSet set from the registry. |
void |
removeSymbolSetRegistryChangeListener(ISymbolSetRegistryChangeListener listener)
Removes the listener from the collection of listeners who will be notified when the SymbolSetRegistry state changes. |
void |
store()
Store out the contents of the SymbolSetRegistry into the standard device storage file in the plug-in state location. |
Methods inherited from interface org.eclipse.mtj.core.persistence.IPersistable |
---|
loadUsing, storeUsing |
Method Detail |
---|
void addSymbolSet(ISymbolSet symbolset) throws PersistenceException
symbolset
- the SymbolSet to be added to the registry.
PersistenceException
- if any error occur while loading the
persisted information.
IllegalStateException
- if the provided definition set has a
null
name.void addSymbolSet(List<ISymbolSet> ss) throws PersistenceException
ss
- symbol set array
PersistenceException
- if any error occur while loading the
persisted information.void addSymbolSetRegistryChangeListener(ISymbolSetRegistryChangeListener listener)
ISymbolSetRegistryChangeListener
interface.
listener
- the listener that should be notified when the
SymbolSetRegistry state changes.void clear() throws PersistenceException
PersistenceException
- if any error occur while loading the
persisted information.String[] getAllSymbolSetNames() throws PersistenceException
PersistenceException
- if any error occur while loading the
persisted information.ISymbolSet[] getAllSymbolSets() throws PersistenceException
PersistenceException
- if any error occur while loading the
persisted information.ISymbolSet getSymbolSet(String name) throws PersistenceException
null
if the object cannot be found.
name
- the SymbolSet name.
null
if the object cannot be found.
PersistenceException
- if any error occur while loading the
persisted information.void load() throws PersistenceException
PersistenceException
- if any error occur while loading the
persisted information.void removeSymbolSet(String setName)
setName
- the name of the SymbolSet to be removed from the registry.void removeSymbolSetRegistryChangeListener(ISymbolSetRegistryChangeListener listener)
listener
- the listener that should no longer be notified when the
SymbolSetRegistry state changes.void store() throws PersistenceException, TransformerException, IOException
PersistenceException
- if any error occur while writing the
persisted information.
TransformerException
- if any error occur while writing the
persisted information.
IOException
- if any error occur while writing the persisted
information.
|
Mobile Tools for Java Release 1.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |