org.primordion.xholon.io
Class SnapshotXML

java.lang.Object
  extended byorg.primordion.xholon.io.Snapshot
      extended byorg.primordion.xholon.io.SnapshotXML
All Implemented Interfaces:
ISnapshot

public class SnapshotXML
extends Snapshot
implements ISnapshot

Take a shapshot of an entire Xholon tree. It saves the snapshot in XML format. The resulting file is intended to be used for debugging, and as a quick global view of the structure. It is NOT intended as a formal serialization. For each node it includes the node name as the XML tag, and the result of calling toString() as the XML content.

Since:
0.3 (Created on May 17, 2006)
Author:
Ken Webb
See Also:
http://www.w3.org/TR/REC-xml/

Constructor Summary
SnapshotXML()
          Constructor.
 
Method Summary
 void saveSnapshot(IXholon snRoot, java.lang.String modelName)
          Save a timestamped snapshot to an XML file.
 
Methods inherited from class org.primordion.xholon.io.Snapshot
getPathName, getSnapshotTostring, setPathName, setSnapshotTostring
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnapshotXML

public SnapshotXML()
Constructor.

Method Detail

saveSnapshot

public void saveSnapshot(IXholon snRoot,
                         java.lang.String modelName)
Description copied from interface: ISnapshot
Save a timestamped snapshot to an XML file.

Specified by:
saveSnapshot in interface ISnapshot
Parameters:
snRoot - Root of the tree to be saved in the snapshot file.
modelName - Name of the model.