FreeHEP API
Version current

org.freehep.xml.io
Class XMLIOFile

java.lang.Object
  extended byorg.freehep.xml.io.XMLIOFile
All Implemented Interfaces:
XMLIO

public class XMLIOFile
extends Object
implements XMLIO

This is a dummy class. It saves the name of a file, and restores it registering it with the XMLIOManager

Version:
1.0
Author:
turri
Source Code:
XMLIOFile.java

Constructor Summary
XMLIOFile()
          The default constructor does nothing
XMLIOFile(String fileName)
          The constructor only loads the name of the file
 
Method Summary
 void restore(XMLIOManager xmlioManager, org.jdom.Element nodeEl)
          Restore the object configuration.
 void save(XMLIOManager xmlioManager, org.jdom.Element el)
          Save the current configuration of an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLIOFile

public XMLIOFile()
The default constructor does nothing


XMLIOFile

public XMLIOFile(String fileName)
The constructor only loads the name of the file

Parameters:
fileName - the name of the file
Method Detail

save

public void save(XMLIOManager xmlioManager,
                 org.jdom.Element el)
Description copied from interface: XMLIO
Save the current configuration of an object.

Specified by:
save in interface XMLIO
Parameters:
xmlioManager - The objects ID manager.
el - The jdom node containing the object's configuration info. This node is created by the XMLIOManager. Its name is, by default, the final part of the object's class. The node contains the attribute "objId", i.e. the unique id assigned to this object by the XMLIOManager. This id is used internally by the XMLIOManager for cross references to this object. The user has to append to this node all the attributes and other Elements required to save the object's configuration. Any other object, either XMLIO or Proxy-XMLIO, that needs to be saved has to be passed to the XMLIOManager through its save(Object) method.
See Also:
XMLIOManager.save(Object obj).

restore

public void restore(XMLIOManager xmlioManager,
                    org.jdom.Element nodeEl)
Description copied from interface: XMLIO
Restore the object configuration.

Specified by:
restore in interface XMLIO
Parameters:
xmlioManager - The objects ID manager.
nodeEl - The jdom node containing the object's configuration info.

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.