hep.aida
Interface ITreeFactory


public interface ITreeFactory

The creator of trees.

Version:
$Id: ITreeFactory.html,v 1.1 2002/10/08 00:51:18 tonyj Exp $
Author:
Tony Johnson, Andreas Pfeiffer, Mark Donszelmann, Guy Barrand
Source Code:
ITreeFactory.java

Method Summary
 ITree create()
          Creates an in memory tree.
 ITree create(String storeName)
          Creates a new tree and associates it with a store.
 ITree create(String storeName, boolean readOnly, boolean exists)
          Creates a new tree and associates it with a store.
 ITree create(String storeName, boolean readOnly, boolean exists, String storeType)
          Creates a new tree and associates it with a store.
 ITree create(String storeName, String storeType)
          Creates a new tree and associates it with a store.
 

Method Detail

create

public ITree create()
Creates an in memory tree. Cannot be associated with a file.

create

public ITree create(String storeName)
             throws IllegalArgumentException,
                    IOException
Creates a new tree and associates it with a store. The store is assumed to be read/write. The store will be created if it does not exist.
Parameters:
storeName - The name for the store.
Throws:
IOException - if the store already exists

create

public ITree create(String storeName,
                    String storeType)
             throws IllegalArgumentException,
                    IOException
Creates a new tree and associates it with a store. The store is assumed to be read/write. The store will be created if it does not exist.
Parameters:
storeName - The name for the store.
storeType - Implementation specific string, may control store type

create

public ITree create(String storeName,
                    boolean readOnly,
                    boolean exists)
             throws IllegalArgumentException,
                    IOException
Creates a new tree and associates it with a store.
Parameters:
readOnly - If true the store is opened readonly, an exception if it does not exist
exists - If true the file must exist, if false the file will be created
storeName - The name of the store

create

public ITree create(String storeName,
                    boolean readOnly,
                    boolean exists,
                    String storeType)
             throws IllegalArgumentException,
                    IOException
Creates a new tree and associates it with a store.
Parameters:
readOnly - If true the store is opened readonly, an exception if it does not exist
exists - If true the file must exist, if false the file will be created
storeName - The name of the store


Copyright © 2000, 2001 AIDA Team, All Rights Reserved.