|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Started Date: Jun 6, 2004
Is implimented by jME objects to allow them to be saved/loaded to/from jME
All implimenting classes must have a default constructor, or they will be
unable to be processed. It is guaranteed that loadFromXML(String args) will
be called directly after default construction. The user should make sure that the String
returned from writeToXML() will duplicate the current object when loadFromXML(String) is
called.
Note: If the implementing item is a Spatial, then it's name, translation, rotation, scale atts are set automatically
and shouldn't be included in either String
| Method Summary | |
java.lang.Object |
loadFromXML(java.lang.String args)
Given a String from a previous object of the same class, loadFromXML will
duplicate that class. |
java.lang.String |
writeToXML()
writeToXML will return a String that when passed to loadFromXML
directly after a call to the default constructor, will reconstruct the current class. |
| Method Detail |
public java.lang.String writeToXML()
writeToXML will return a String that when passed to loadFromXML
directly after a call to the default constructor, will reconstruct the current class.
loadFromXMLpublic java.lang.Object loadFromXML(java.lang.String args)
loadFromXML will
duplicate that class.
args - The string args given to reconstruct this class
JmeBinaryReader will use. This can either be the same object that
loadFromXML was called on, or a new object. Only the returned object will be used.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||