com.jme.scene.model.XMLparser
Interface XMLloadable


public interface XMLloadable

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

Author:
Jack Lindamood

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

writeToXML

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.

Returns:
String to later be given to loadFromXML

loadFromXML

public java.lang.Object loadFromXML(java.lang.String args)
Given a String from a previous object of the same class, loadFromXML will duplicate that class.

Parameters:
args - The string args given to reconstruct this class
Returns:
The object that 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.