FreeHEP API
Version current

hep.aida.ref.xml
Class AidaXMLStore

java.lang.Object
  extended byhep.aida.ref.xml.AidaXMLStore
All Implemented Interfaces:
IStore

public class AidaXMLStore
extends Object
implements IStore

Version:
$Id: AidaXMLStore.java,v 1.10 2004/08/05 21:01:55 turri Exp $
Author:
tonyj
Source Code:
AidaXMLStore.java

Constructor Summary
AidaXMLStore()
           
 
Method Summary
 void close()
          Close Store and free all resources associated with it.
 void commit(IDevTree tree, Map optionsMap)
          Copy data from Tree to the Store.
 boolean isReadOnly()
          Returns true if the store only supports reading.
 void read(IDevTree tree, Map optionsMap, boolean readOnly, boolean createNew)
          Populate AIDA Tree: create appropriate AIDA objects in the Tree and fill them with data from the Store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AidaXMLStore

public AidaXMLStore()
Method Detail

isReadOnly

public boolean isReadOnly()
Description copied from interface: IStore
Returns true if the store only supports reading. If true, user can not change information in the Store and "commit()" method throws IOException if called.

Specified by:
isReadOnly in interface IStore

read

public void read(IDevTree tree,
                 Map optionsMap,
                 boolean readOnly,
                 boolean createNew)
          throws IOException
Description copied from interface: IStore
Populate AIDA Tree: create appropriate AIDA objects in the Tree and fill them with data from the Store. This method is called only once, during Tree-Store association, to populate the Tree. Tree relies on IStore calling IDevTree.hasBeenFilled(String path) method, to let Tree know that a particular folder has been filled.

Specified by:
read in interface IStore
Throws:
IOException - If there are problems reading from the Store

commit

public void commit(IDevTree tree,
                   Map optionsMap)
            throws IOException
Description copied from interface: IStore
Copy data from Tree to the Store.

Specified by:
commit in interface IStore
Throws:
IOException - If there are problems writing to the Store or the Store is Read-Only.

close

public void close()
Description copied from interface: IStore
Close Store and free all resources associated with it. Should be called from ITree.close() method only. After the Store is closed, the Tree associated with it becomes unusable.

Specified by:
close in interface IStore

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.