|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface XMLSerializable
This interface has to be implemented by objects that want to be loaded and saved via the parser.
| Method Summary | |
|---|---|
java.lang.String |
getXMLName()
DOCUMENT ME! |
void |
load(XMLElement myself,
XMLLoader loader)
Load this XMLSerializable |
void |
saveChilds(XMLSaver saver)
This method gives an XMLSerializable the opportunity to save its child objects. |
XMLElement |
saveSelf()
DOCUMENT ME! |
void |
setParentName(java.lang.String parentName)
Sets a new parent name for this object |
| Method Detail |
|---|
void load(XMLElement myself,
XMLLoader loader)
throws XMLTreeException,
java.io.IOException,
XMLInvalidInputException
myself - The XMLElement which represents this object in the XML
tree. It can contain attributes which hold information about the
object.loader - The XMLLoader which this XMLSerializable can use to load
child objects.
XMLTreeException - The parser can throw this exception if it is
called by the XMLSerializable. The XMLSerializable should NOT
throw this exception by itself and preferrably not catch it
too.
java.io.IOException - Thrown in case of an read error in the XML file.
XMLInvalidInputException - The XMLSerializable can throw this
exception if it cannot load itself or one of its child objects
for whatever reason.
XMLElement saveSelf()
throws XMLCannotSaveException
XMLCannotSaveException - The XMLSerializable can throw this
exception if it cannot save itself or one of its child objects
for whatever reason.
void saveChilds(XMLSaver saver)
throws XMLTreeException,
java.io.IOException,
XMLCannotSaveException
saver - The XMLSaver that the XMLSerializable can use to save its
child objects.
XMLTreeException - The parser can throw this exception if it is
called by the XMLSerializable. The XMLSerializable should NOT
throw this exception by itself and preferrably also not catch
it too.
java.io.IOException - Thrown in case the parser cannot write to the file
XMLCannotSaveException - The XMLSerializable can throw this
exception if it cannot save itself or one of its child objects
for whatever reason.java.lang.String getXMLName()
void setParentName(java.lang.String parentName)
throws XMLTreeException
parentName - The new parent name
XMLTreeException - If this object does not support setting other
parent names.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||