hep.aida.ref.tree
Class TreeFactory
- java.lang.Object
-
- hep.aida.ref.tree.TreeFactory
-
- All Implemented Interfaces:
- ITreeFactory
public class TreeFactory extends java.lang.Object implements ITreeFactory
-
-
Constructor Summary
Constructors Constructor and Description TreeFactory(IAnalysisFactory analysisFactory)The default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ITreecreate()Creates a new tree and associates it with a store.ITreecreate(java.lang.String storeName)Creates a new tree and associates it with a store.ITreecreate(java.lang.String storeName, java.lang.String storeType)Creates a new tree and associates it with a store.ITreecreate(java.lang.String storeName, java.lang.String storeType, boolean readOnly)Creates a new tree and associates it with a store.ITreecreate(java.lang.String storeName, java.lang.String storeType, boolean readOnly, boolean createNew)Creates a new tree and associates it with a store.ITreecreate(java.lang.String storeName, java.lang.String storeType, boolean readOnly, boolean createNew, java.lang.String options)Creates a new tree and associates it with a store.ITreecreateNamedTree(java.lang.String name, java.lang.String storeName, java.lang.String storeType)Creates a new tree which is explicitly named.ITreecreateNamedTree(java.lang.String name, java.lang.String storeName, java.lang.String storeType, int mode)Creates a new tree which is explicitly named.ITreecreateNamedTree(java.lang.String name, java.lang.String storeName, java.lang.String storeType, int mode, java.lang.String options)Creates a new tree which is explicitly named.ITreecreateTree()Creates a new tree and associates it with a store.ITreecreateTree(java.lang.String options)Creates a new tree that is not associated with a store.ITreecreateTree(java.lang.String storeName, java.lang.String storeType)Creates a new tree and associates it with a store.ITreecreateTree(java.lang.String storeName, java.lang.String storeType, int mode)Creates a new tree and associates it with a store.ITreecreateTree(java.lang.String storeName, java.lang.String storeType, int mode, java.lang.String options)Creates a new tree and associates it with a store.ITreecreateTree(java.lang.String storeName, java.lang.String storeType, java.lang.String options)
-
-
-
Constructor Detail
-
TreeFactory
public TreeFactory(IAnalysisFactory analysisFactory)
The default constructor.
-
-
Method Detail
-
create
public ITree create()
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. in memory and therefore will not be associated with a file.- Specified by:
createin interfaceITreeFactory
-
create
public ITree create(java.lang.String storeName) throws java.lang.IllegalArgumentException, java.io.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.- Specified by:
createin interfaceITreeFactory- Parameters:
storeName- The name of the store, if empty (""), the tree is created in memory and therefore will not be associated with a file.- Throws:
java.io.IOException- if the store already existsjava.lang.IllegalArgumentException
-
create
public ITree create(java.lang.String storeName, java.lang.String storeType) throws java.lang.IllegalArgumentException, java.io.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.- Specified by:
createin interfaceITreeFactory- Parameters:
storeName- The name of the store, if empty (""), the tree is created in memory and therefore will not be associated with a file.storeType- Implementation specific string, may control store type- Throws:
java.io.IOException- if the store already existsjava.lang.IllegalArgumentException
-
create
public ITree create(java.lang.String storeName, java.lang.String storeType, boolean readOnly) throws java.lang.IllegalArgumentException, java.io.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.- Specified by:
createin interfaceITreeFactory- Parameters:
storeName- The name of the store, if empty (""), the tree is created in memory and therefore will not be associated with a file.storeType- Implementation specific string, may control store typereadOnly- If true the store is opened readonly, an exception if it does not exist- Throws:
java.io.IOException- if the store already existsjava.lang.IllegalArgumentException
-
create
public ITree create(java.lang.String storeName, java.lang.String storeType, boolean readOnly, boolean createNew) throws java.lang.IllegalArgumentException, java.io.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.- Specified by:
createin interfaceITreeFactory- Parameters:
storeName- The name of the store, if empty (""), the tree is created in memory and therefore will not be associated with a file.storeType- Implementation specific string, may control store typereadOnly- If true the store is opened readonly, an exception if it does not existcreateNew- If false the file must exist, if true the file will be created- Throws:
java.io.IOException- if the store already existsjava.lang.IllegalArgumentException
-
create
public ITree create(java.lang.String storeName, java.lang.String storeType, boolean readOnly, boolean createNew, java.lang.String options) throws java.lang.IllegalArgumentException, java.io.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.- Specified by:
createin interfaceITreeFactory- Parameters:
storeName- The name of the store, if empty (""), the tree is created in memory and therefore will not be associated with a file.storeType- Implementation specific string, may control store typereadOnly- If true the store is opened readonly, an exception if it does not existcreateNew- If false the file must exist, if true the file will be createdoptions- Other options, currently are not specified- Throws:
java.io.IOException- if the store already existsjava.lang.IllegalArgumentException
-
createTree
public ITree createTree()
Creates a new tree and associates it with a store.The definition of the various modes than can be specified are:
- AUTO default case: create of store does not exist
- CREATE: Create a new file (throws an exception if already exists)
- RECREATE: overwrite file if existing
- READONLY: open in read only mode
- UPDATE: read/write mode, overwriting modified objects.
- Specified by:
createTreein interfaceITreeFactory- Parameters:
storeName- The name of the store, if empty (""), the tree is created in memory and therefore will not be associated with a file.storeType- Implementation specific string, may control store typemode- One of AUTO, CREATE, RECREATE, READONLY, UPDATE.- Throws:
java.io.IOException- if the store already existsjava.lang.IllegalArgumentException
-
createTree
public ITree createTree(java.lang.String options)
Description copied from interface:ITreeFactoryCreates a new tree that is not associated with a store.- Specified by:
createTreein interfaceITreeFactory
-
createTree
public ITree createTree(java.lang.String storeName, java.lang.String storeType) throws java.lang.IllegalArgumentException, java.io.IOException
Description copied from interface:ITreeFactoryCreates a new tree and associates it with a store.The definition of the various modes than can be specified are:
- AUTO default case: create of store does not exist
- CREATE: Create a new file (throws an exception if already exists)
- RECREATE: overwrite file if existing
- READONLY: open in read only mode
- UPDATE: read/write mode, overwriting modified objects.
- Specified by:
createTreein interfaceITreeFactory- Parameters:
storeName- The name of the store, if empty (""), the tree is created in memory and therefore will not be associated with a file.storeType- Implementation specific string, may control store type- Throws:
java.lang.IllegalArgumentExceptionjava.io.IOException- if the store already exists
-
createTree
public ITree createTree(java.lang.String storeName, java.lang.String storeType, java.lang.String options) throws java.lang.IllegalArgumentException, java.io.IOException
- Throws:
java.lang.IllegalArgumentExceptionjava.io.IOException
-
createTree
public ITree createTree(java.lang.String storeName, java.lang.String storeType, int mode) throws java.lang.IllegalArgumentException, java.io.IOException
Description copied from interface:ITreeFactoryCreates a new tree and associates it with a store.The definition of the various modes than can be specified are:
- AUTO default case: create of store does not exist
- CREATE: Create a new file (throws an exception if already exists)
- RECREATE: overwrite file if existing
- READONLY: open in read only mode
- UPDATE: read/write mode, overwriting modified objects.
- Specified by:
createTreein interfaceITreeFactory- Parameters:
storeName- The name of the store, if empty (""), the tree is created in memory and therefore will not be associated with a file.storeType- Implementation specific string, may control store typemode- One of AUTO, CREATE, RECREATE, READONLY, UPDATE.- Throws:
java.lang.IllegalArgumentExceptionjava.io.IOException- if the store already exists
-
createTree
public ITree createTree(java.lang.String storeName, java.lang.String storeType, int mode, java.lang.String options) throws java.lang.IllegalArgumentException, java.io.IOException
Description copied from interface:ITreeFactoryCreates a new tree and associates it with a store.The definition of the various modes than can be specified are:
- AUTO default case: create of store does not exist
- CREATE: Create a new file (throws an exception if already exists)
- RECREATE: overwrite file if existing
- READONLY: open in read only mode
- UPDATE: read/write mode, overwriting modified objects.
- Specified by:
createTreein interfaceITreeFactory- Parameters:
storeName- The name of the store, if empty (""), the tree is created in memory and therefore will not be associated with a file.storeType- Implementation specific string, may control store typemode- One of AUTO, CREATE, RECREATE, READONLY, UPDATE.options- Other options, currently are not specified- Throws:
java.lang.IllegalArgumentExceptionjava.io.IOException- if the store already exists
-
createNamedTree
public ITree createNamedTree(java.lang.String name, java.lang.String storeName, java.lang.String storeType) throws java.lang.IllegalArgumentException, java.io.IOException
Description copied from interface:ITreeFactoryCreates a new tree which is explicitly named.- Specified by:
createNamedTreein interfaceITreeFactory- Parameters:
name- The name of the tree.storeName- The name of the store, if empty (""), the tree is created in memory and therefore will not be associated with a file.storeType- Implementation specific string, may control store type- Throws:
java.lang.IllegalArgumentExceptionjava.io.IOException- if the store already exists
-
createNamedTree
public ITree createNamedTree(java.lang.String name, java.lang.String storeName, java.lang.String storeType, int mode) throws java.lang.IllegalArgumentException, java.io.IOException
Description copied from interface:ITreeFactoryCreates a new tree which is explicitly named.- Specified by:
createNamedTreein interfaceITreeFactory- Parameters:
name- The name of the tree.storeName- The name of the store, if empty (""), the tree is created in memory and therefore will not be associated with a file.storeType- Implementation specific string, may control store typemode- One of AUTO, CREATE, RECREATE, READONLY, UPDATE.- Throws:
java.lang.IllegalArgumentExceptionjava.io.IOException- if the store already exists
-
createNamedTree
public ITree createNamedTree(java.lang.String name, java.lang.String storeName, java.lang.String storeType, int mode, java.lang.String options) throws java.lang.IllegalArgumentException, java.io.IOException
Description copied from interface:ITreeFactoryCreates a new tree which is explicitly named.- Specified by:
createNamedTreein interfaceITreeFactory- Parameters:
name- The name of the tree.storeName- The name of the store, if empty (""), the tree is created in memory and therefore will not be associated with a file.storeType- Implementation specific string, may control store typemode- One of AUTO, CREATE, RECREATE, READONLY, UPDATE.options- Other options, currently are not specified- Throws:
java.lang.IllegalArgumentExceptionjava.io.IOException- if the store already exists
-
-
DMelt 3.0 © DataMelt by jWork.ORG