© 2006-2007 ETH Zurich

org.ximtec.igesture.storage
Class XMLStorageEngine

java.lang.Object
  extended by org.ximtec.igesture.storage.DefaultStorageEngine
      extended by org.ximtec.igesture.storage.DefaultFileStorageEngine
          extended by org.ximtec.igesture.storage.XMLStorageEngine
All Implemented Interfaces:
StorageEngine

public class XMLStorageEngine
extends DefaultFileStorageEngine

XML storage engine implementation.

Version:
1.0, Dec 2006
Author:
Ueli Kurmann, igesture@uelikurmann.ch, Beat Signer, signer@inf.ethz.ch

Constructor Summary
XMLStorageEngine(String filename)
          Create the XML Storage Engine
 
Method Summary
 void copyTo(File file)
           
protected  HashMap<Class<? extends DataObject>,List<DataObject>> deserialize(File file)
          Deserialise an XML file.
protected  void serialize(HashMap<Class<? extends DataObject>,List<DataObject>> objects, File file)
          Serialize the internal data structure to an XML file.
 
Methods inherited from class org.ximtec.igesture.storage.DefaultFileStorageEngine
commit, dispose, getStorageFile, isDoChanged, load, load, remove, removeDataObject, setDoChanged, setStorageFile, store, update
 
Methods inherited from class org.ximtec.igesture.storage.DefaultStorageEngine
load
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLStorageEngine

public XMLStorageEngine(String filename)
Create the XML Storage Engine

Parameters:
filename -
Method Detail

serialize

protected void serialize(HashMap<Class<? extends DataObject>,List<DataObject>> objects,
                         File file)
Serialize the internal data structure to an XML file.

Specified by:
serialize in class DefaultFileStorageEngine

deserialize

protected HashMap<Class<? extends DataObject>,List<DataObject>> deserialize(File file)
Deserialise an XML file.

Specified by:
deserialize in class DefaultFileStorageEngine
Parameters:
file - the file to be deserialised.
Returns:
the internal data structure handling the data objects.

copyTo

public void copyTo(File file)

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.