Documentation of 'hep.aida.ref.xml.AidaXMLStore' Java class
AidaXMLStore
hep.aida.ref.xml

Class 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
      void close()
      Close Store and free all resources associated with it.
      void commit(IDevTree tree, java.util.Map optionsMap)
      Copy data from Tree to the Store.
      void commit(ITree tree, de.schlichtherle.io.File file, java.lang.String[] skip, boolean zip, boolean compress, boolean binary) 
      boolean isReadOnly()
      Returns true if the store only supports reading.
      void read(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.
      void read(IDevTree tree, java.lang.String path)
      Populate folder or create AIDA object in the tree.
      • Methods inherited from class java.lang.Object

        equals, 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,
                         java.lang.String path)
                  throws java.lang.IllegalArgumentException,
                         java.io.IOException
        Description copied from interface: IOnDemandStore
        Populate 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:
        read in interface IOnDemandStore
        path - 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: 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:
        java.io.IOException - If there are problems reading from the Store
      • commit

        public void commit(IDevTree tree,
                           java.util.Map optionsMap)
                    throws java.io.IOException
        Description copied from interface: IStore
        Copy data from Tree to the Store.
        Specified by:
        commit in interface IStore
        Throws:
        java.io.IOException - If there are problems writing to the Store or the Store is Read-Only.
      • 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
      • 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

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.