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
static ImportFactory getInstance()
          Singleton access method.
 boolean importFile(java.io.File file, DomainImportController controller)
          Import this file.
 
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.