org.archiviststoolkit.importer
Class ImportFactory

java.lang.Object
  extended by org.archiviststoolkit.importer.ImportFactory

public final class ImportFactory
extends java.lang.Object

A singleton in which we store the import parsers.


Method Summary
 EADIngest2 getEadIngest()
          get the EADingest2 engine
static ImportFactory getInstance()
          Singleton access method.
 MARCIngest getMarcIngest()
          Get the Marc XML ingest Engine
 boolean importFile(java.io.File file, DomainImportController controller)
          Import this file.
 void setEadIngest(EADIngest2 eadIngest)
          Set the EAD ingest engine
 void setMarcIngest(MARCIngest marcIngest)
          Set the MARCXML Ingest engine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ImportFactory getInstance()
Singleton access method.

Returns:
the instance of this singleton

importFile

public boolean importFile(java.io.File file,
                          DomainImportController controller)
Import this file.

Parameters:
file - the file.
controller - the controller.
Returns:
if it succeeded or not.

getEadIngest

public EADIngest2 getEadIngest()
get the EADingest2 engine

Returns:
User supplied EADIngest engine

setEadIngest

public void setEadIngest(EADIngest2 eadIngest)
Set the EAD ingest engine

Parameters:
eadIngest -

getMarcIngest

public MARCIngest getMarcIngest()
Get the Marc XML ingest Engine

Returns:
The MARCXML Ingest engine

setMarcIngest

public void setMarcIngest(MARCIngest marcIngest)
Set the MARCXML Ingest engine

Parameters:
marcIngest -