Class AbstractImport
- java.lang.Object
-
- com.openindex.openestate.tool.agency.imports.AbstractImport
-
- Direct Known Subclasses:
IdxImport
,ImmobiliareItImport
,ImmoXmlImport
,Is24CsvImport
,Is24XmlImport
,KyeroImport
,OpenEstateImport
,OpenImmoImport
public abstract class AbstractImport extends Object
AbstractImport.- Author:
- Andreas Rudolph
-
-
Constructor Summary
Constructors Constructor Description AbstractImport()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AgencyImportDialog.AbstractImportTab
createOptionsTab()
ImmoToolTask
createTask(File file, String version, AgencyImportTask.Settings settings, AbstractDbDriver dbDriver, DbAgencyExtension dbExtension, DbUser dbUser)
File
getAttachedFile(String attachmentName, File baseDir)
abstract String[]
getFileExtensions()
static AbstractImport
getImport(String name)
static Map<String,AbstractImport>
getImports()
abstract String
getName()
AgencyImportTask.Settings
getPreferredSettings()
abstract String
getTitle()
abstract String[]
getVersions()
boolean
isIncrementalTransferSupported()
boolean
isSingleLanguageFormat()
abstract TransferImpl
parseFile(File file, String version, AgencyImportTask.Settings settings)
abstract String
validateFile(File file)
-
-
-
Method Detail
-
createOptionsTab
public AgencyImportDialog.AbstractImportTab createOptionsTab()
-
createTask
public ImmoToolTask createTask(File file, String version, AgencyImportTask.Settings settings, AbstractDbDriver dbDriver, DbAgencyExtension dbExtension, DbUser dbUser)
-
getImport
public static AbstractImport getImport(String name)
-
getImports
public static Map<String,AbstractImport> getImports()
-
getFileExtensions
public abstract String[] getFileExtensions()
-
getName
public abstract String getName()
-
getPreferredSettings
public AgencyImportTask.Settings getPreferredSettings()
-
getTitle
public abstract String getTitle()
-
getVersions
public abstract String[] getVersions()
-
isIncrementalTransferSupported
public boolean isIncrementalTransferSupported()
-
isSingleLanguageFormat
public boolean isSingleLanguageFormat()
-
parseFile
public abstract TransferImpl parseFile(File file, String version, AgencyImportTask.Settings settings) throws IOException
- Throws:
IOException
-
validateFile
public abstract String validateFile(File file) throws IOException
- Throws:
IOException
-
-