hep.aida.ref.xml
Class AidaXMLStore
- java.lang.Object
-
- hep.aida.ref.xml.AidaXMLStore
-
- All Implemented Interfaces:
- IOnDemandStore, IStore
public class AidaXMLStore extends java.lang.Object implements IOnDemandStore
Store associated to XML file, directory structure or archive.
-
-
Constructor Summary
Constructors Constructor and Description AidaXMLStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidclose()Close Store and free all resources associated with it.voidcommit(IDevTree tree, java.util.Map optionsMap)Copy data from Tree to the Store.voidcommit(ITree tree, de.schlichtherle.io.File file, java.lang.String[] skip, boolean zip, boolean compress, boolean binary)booleanisReadOnly()Returns true if the store only supports reading.voidread(IDevTree tree, java.util.Map optionsMap, boolean readOnly, boolean createNew)Populate AIDA Tree: create appropriate AIDA objects in the Tree and fill them with data from the Store.voidread(IDevTree tree, java.lang.String path)Populate folder or create AIDA object in the tree.
-
-
-
Method Detail
-
isReadOnly
public boolean isReadOnly()
Description copied from interface:IStoreReturns 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:
isReadOnlyin interfaceIStore
-
read
public void read(IDevTree tree, java.lang.String path) throws java.lang.IllegalArgumentException, java.io.IOException
Description copied from interface:IOnDemandStorePopulate folder or create AIDA object in the tree. If some folders along the path are missing, IOnDemandStore must create them using ITree "mkdirs(path)" method. Tree relies on Store calling IDevTree.hasBeenFilled(String path) method, to let Tree know that a particular folder has been filled.- Specified by:
readin interfaceIOnDemandStorepath- The path to the diretory which is to be filled.- Throws:
java.lang.IllegalArgumentException- If the path does not exist, or if it is not a directory.java.io.IOException- If there are problems reading from the Store
-
read
public void read(IDevTree tree, java.util.Map optionsMap, boolean readOnly, boolean createNew) throws java.io.IOException
Description copied from interface:IStorePopulate 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.
-
commit
public void commit(IDevTree tree, java.util.Map optionsMap) throws java.io.IOException
Description copied from interface:IStoreCopy data from Tree to the Store.
-
commit
public void commit(ITree tree, de.schlichtherle.io.File file, java.lang.String[] skip, boolean zip, boolean compress, boolean binary) throws java.io.IOException
- Throws:
java.io.IOException
-
-
DMelt 3.0 © DataMelt by jWork.ORG