|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.fractal.gui.repository.lib.XMLFileStorage
Basic implementation of Storage
interface, based on a single XML
file. More precsiely, each storage is a single XML file, and each (name,
value) pair is represented by an XML element of these files (the name is
given by the 'name' attribute of an XML element).
Constructor Summary | |
XMLFileStorage()
|
Method Summary | |
void |
close()
Closes the currently opened storage. |
java.lang.Object |
load(java.lang.String name)
Loads the object whose name is given, from the currently opened storage. |
void |
open(java.lang.String storage)
Opens the storage whose name is given. |
void |
store(java.lang.String name,
java.lang.Object value)
Stores the given object under the given name in the currently opened storage. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLFileStorage()
Method Detail |
public void open(java.lang.String storage) throws java.lang.Exception
Storage
open
in interface Storage
storage
- name of the storage to be opened
java.lang.Exception
- if the storage cannot be opened.public java.lang.Object load(java.lang.String name) throws java.lang.Exception
Storage
load
in interface Storage
name
- the name of the object to be loaded.
java.lang.Exception
- if the given object cannot be loaded.public void store(java.lang.String name, java.lang.Object value) throws java.lang.Exception
Storage
store
in interface Storage
name
- the name of the object to be stored.value
- the value of the object to be stored.
java.lang.Exception
- if the object cannot be stored.public void close() throws java.lang.Exception
Storage
close
in interface Storage
java.lang.Exception
- if the currently opened storage cannot be closed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |