public class ImporterConfig extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ACCEPT_ALL_REGEX_OPTION
The regexp to use to import all the feature class / code
|
static String |
ALREADY_DONE_FILE_NAME
the name of the file that gives the information if the import is done or
not
|
static String |
BASE_ACCEPT_REGEX
The default regexp if no one is specified in the env.properties file
|
static String |
DEFAULT_ACCEPT_REGEX_CITY
The regexp to use to import all the city
|
AdmExtracterStrategyOptions |
DEFAULT_ADM1_EXTRACTER_STRATEGY_OPTION
Default option if the Adm1 file has already been processed
|
AdmExtracterStrategyOptions |
DEFAULT_ADM2_EXTRACTER_STRATEGY_OPTION
Default option if the adm2 file has already been processed
|
AdmExtracterStrategyOptions |
DEFAULT_ADM3_EXTRACTER_STRATEGY_OPTION
Default option if the Adm3 file has already been processed
|
AdmExtracterStrategyOptions |
DEFAULT_ADM4_EXTRACTER_STRATEGY_OPTION
Default option if the adm4 file has already been processed
|
static String |
DEFAULT_FEATURE_CLASS
The default feature class if no one is specified
|
static String |
DEFAULT_FEATURE_CODE
The default feature code if no one is specified
|
static int |
DEFAULT_MAX_INSERT_BEFORE_FLUSH
Default value for
maxInsertsBeforeFlush |
static String |
GEONAMES_ALTERNATENAME_ZIP_FILE |
static String |
GEONAMES_COMPRESSED_FILE_EXTENSION |
static String |
GEONAMES_DEFAULT_FILES_TO_DOWNLOAD |
static String |
IMPORTER_METADATA_RELATIVE_PATH
The relative path of the directory that contains importer metadata
|
protected static org.slf4j.Logger |
logger
The logger
|
static String |
OPENSTREETAMP_COMPRESSED_FILE_EXTENSION |
static String |
OPENSTREETMAP_CITIES_DEFAULT_FILES_TO_DOWNLOAD |
static String |
OPENSTREETMAP_DEFAULT_FILES_TO_DOWNLOAD |
static String |
OPENSTREETMAP_FILL_ISIN_FIELD_NAME |
static String |
OPENSTREETMAP_HOUSENUMBER_DEFAULT_FILES_TO_DOWNLOAD |
static String |
OPENSTREETMAP_POI_DEFAULT_FILES_TO_DOWNLOAD |
static String |
OPTION_SEPARATOR
A list of options is separated by this. e.g : a list of regexp options
|
static String |
PROPERTIES_CONFIG_FILE_CLASSPATH |
static String |
QUATTROSHAPES_DEFAULT_FILES_TO_DOWNLOAD |
static String |
REGEXP_SEPARATOR
A list of options is separated by this. e.g : a list of regexp options
|
Constructor and Description |
---|
ImporterConfig() |
Modifier and Type | Method and Description |
---|---|
String |
createImporterMetadataDirIfItDoesnTExist()
Create the importerMetadataDirectory
|
String |
getAcceptRegExString() |
AdmExtracterStrategyOptions |
getAdm1ExtracterStrategyIfAlreadyExists() |
String |
getAdm1FileName() |
AdmExtracterStrategyOptions |
getAdm2ExtracterStrategyIfAlreadyExists() |
String |
getAdm2FileName() |
AdmExtracterStrategyOptions |
getAdm3ExtracterStrategyIfAlreadyExists() |
String |
getAdm3FileName() |
AdmExtracterStrategyOptions |
getAdm4ExtracterStrategyIfAlreadyExists() |
String |
getAdm4FileName() |
AdmExtracterStrategyOptions |
getAdmExtracterStrategyOptionsForAdm(int admLevel)
What should we do if the Adm file for the specified level has already
been processed It is a wrapper method around
DEFAULT_ADM3_EXTRACTER_STRATEGY_OPTION and
DEFAULT_ADM4_EXTRACTER_STRATEGY_OPTION |
String |
getAlreadyDoneFilePath() |
String |
getAlternateNameAdm1FileName()
Get the name of the file where the alternate names of adm with level 1
are
|
String |
getAlternateNameAdm2FileName()
Get the name of the file where the alternate names of adm with level 2
are
|
String |
getAlternateNameCountryFileName()
Get the name of the file where the alternate names of countries are
|
String |
getAlternateNameFeaturesFileName()
Get the name of the file where the alternate names of features that are
not adm1, adm2, or country are
|
String |
getAlternateNamesFileName() |
String |
getCountriesFileName() |
String |
getGeonamesDir() |
List<String> |
getGeonamesDownloadFilesListFromOption() |
String |
getGeonamesDownloadURL() |
String |
getGeonamesFilesToDownload() |
String |
getGeonamesZipCodeDir() |
String |
getGeonamesZipCodeDownloadURL() |
String |
getImporterMetadataDirectoryPath() |
String |
getLanguageFileName() |
int |
getMaxInsertsBeforeFlush() |
String |
getOpenStreetMapCitiesDir() |
List<String> |
getOpenStreetMapCitiesDownloadFilesListFromOption() |
String |
getOpenstreetMapCitiesDownloadURL() |
String |
getOpenStreetMapCitiesFilesToDownload() |
String |
getOpenStreetMapDir() |
List<String> |
getOpenStreetMapDownloadFilesListFromOption() |
String |
getOpenstreetMapDownloadURL() |
String |
getOpenStreetMapFilesToDownload() |
String |
getOpenStreetMapHouseNumberDir() |
List<String> |
getOpenStreetMapHouseNumberDownloadFilesListFromOption() |
String |
getOpenStreetMapHouseNumberFilesToDownload() |
String |
getOpenstreetMaphouseNumbersDownloadURL() |
String |
getOpenStreetMapPoisDir() |
List<String> |
getOpenStreetMapPoisDownloadFilesListFromOption() |
String |
getOpenstreetMapPoisDownloadURL() |
String |
getOpenStreetMapPoisFilesToDownload() |
String |
getQuattroshapesDir() |
String |
getQuattroshapesDownloadURL() |
List<String> |
getQuattroshapesFilesDownloadFilesListFromOption() |
String |
getQuattroshapesFilesToDownload() |
boolean |
isAllFilesDownloadables() |
boolean |
isConfigCorrectForImport() |
boolean |
isGeonamesDownloadDirectoryAccessible() |
boolean |
isGeonamesImporterEnabled() |
boolean |
isImportGisFeatureEmbededAlternateNames() |
boolean |
isMissingRequiredFieldThrows() |
boolean |
isOpenStreetMapCitiesDirectoryAccessible() |
boolean |
isOpenStreetMapDownloadDirectoryAccessible() |
boolean |
isOpenStreetMapFillIsIn()
if we search for the nearest city in geonames data to fill the is_in
field this increase the time of the importer but strongly increase the
relevance of the geocoder
|
boolean |
isOpenStreetMapHouseNumberDownloadDirectoryAccessible() |
boolean |
isOpenstreetmapHouseNumberImporterEnabled() |
boolean |
isOpenstreetmapImporterEnabled() |
boolean |
isOpenStreetMapPoisDirectoryAccessible() |
boolean |
isQuattroshapesDirectoryAccessible() |
boolean |
isQuattroshapesImporterEnabled() |
boolean |
isRegexpCorrects() |
boolean |
isRenameFilesAfterProcessing() |
boolean |
isRetrieveFiles() |
boolean |
isSyncAdmCodesWithLinkedAdmOnes() |
boolean |
isTryToDetectAdmIfNotFound() |
boolean |
isWrongNumberOfFieldsThrows() |
void |
setAcceptRegExString(String acceptRegExString)
List of regular expressions for placetype (class name without .class to be
import.
|
void |
setAdm1ExtracterStrategyIfAlreadyExists(AdmExtracterStrategyOptions adm1ExtracterStrategy)
What should we do if the Adm1 file has already been processed
|
void |
setAdm1FileName(String adm1FileName)
The name of the Geonames dump file containing the ADM with level 1
|
void |
setAdm2ExtracterStrategyIfAlreadyExists(AdmExtracterStrategyOptions adm2ExtracterStrategy)
What should we do if the Adm2 file has already been processed
|
void |
setAdm2FileName(String adm2FileName)
The name of the Geonames dump file containing the ADM with level 2
|
void |
setAdm3ExtracterStrategyIfAlreadyExists(AdmExtracterStrategyOptions adm3ExtracterStrategy)
What should we do if the Adm3 file has already been processed
|
void |
setAdm3FileName(String adm3FileName)
The name of the Geonames dump file containing the ADM with level 3
|
void |
setAdm4ExtracterStrategyIfAlreadyExists(AdmExtracterStrategyOptions adm4ExtracterStrategy)
What should we do if the Adm4 file has already been processed
|
void |
setAdm4FileName(String adm4FileName)
The name of the Geonames dump file containing the ADM with level 4
|
void |
setAlternateNameAdm1FileName(String alternateNameAdm1FileName)
Set the name of the file where the alternate names of adm with level 1
are
|
void |
setAlternateNameAdm2FileName(String alternateNameAdm2FileName)
Set the name of the file where the alternate names of adm with level 2
are
|
void |
setAlternateNameCountryFileName(String alternateNameCountryFileName)
Set the name of the file where the alternate names of countries are
|
void |
setAlternateNameFeaturesFileName(String alternateNameFeaturesFileName)
Set the name of the file where the alternate names of features that are
not adm1, adm2, or country are
|
void |
setAlternateNamesFileName(String alternateNamesFileName)
The name of the Geonames dump file containing the alternate names
|
void |
setCountriesFileName(String countryFileName)
The name of the Geonames dump file containing the countries informations
|
void |
setGeonamesDir(String importerGeonamesDir)
The directory where the Geonames files will be retrieved and processed.
|
void |
setGeonamesDownloadURL(String importerGeonamesDownloadURL)
The HTTP URL of the directory Where Geonames files are to be download
from
|
void |
setGeonamesFilesToDownload(String geonamesFilesToDownload)
The list of the Geonames files to be download from the
geonamesDownloadURL . the several files will be separated by
OPTION_SEPARATOR , if not set or null, defaulting to GEONAMES_DEFAULT_FILES_TO_DOWNLOAD |
void |
setGeonamesImporterEnabled(boolean geonamesImporterEnabled) |
void |
setGeonamesZipCodeDir(String geonamesZipCodeDir)
The directory where the zip code files will be retrieved and
processed.
|
void |
setGeonamesZipCodeDownloadURL(String geonamesZipCodeDownloadURL)
The HTTP URL of the directory Where Geonames zip files are to be download
from
|
void |
setImportGisFeatureEmbededAlternateNames(boolean importGisFeatureEmbededAlternateNames)
Set to true the alternate names of the country dump are imported.
|
void |
setLanguageFileName(String languageFileName)
The name of the Geonames dump file containing the language informations
|
void |
setMaxInsertsBeforeFlush(int maxInsertsBeforeFlush)
Optional setting that allows to specify the number of inserts that can be
done before flushing.
|
void |
setMissingRequiredFieldThrows(boolean missingRequiredFieldThrows)
Set to true this options force the import process to stop if a required
field is missing.
|
void |
setOpenStreetMapCitiesDir(String openStreetMapCitiesDir)
The directory where the openStreetMap cities files will be retrieved and
processed.
|
void |
setOpenstreetMapCitiesDownloadURL(String openstreetMapCitiesDownloadURL)
The HTTP URL of the directory Where openstreetmap cities files are to be
download from
|
void |
setOpenStreetMapCitiesFilesToDownload(String openStreetMapCitiesFilesToDownload)
The list of the cities Openstreetmap to be download from the
openstreetMapCitiesDownloadURL . the several files will be separated by
OPTION_SEPARATOR . if null or empty, will be set to {
OPENSTREETMAP_CITIES_DEFAULT_FILES_TO_DOWNLOAD |
void |
setOpenStreetMapDir(String importerOpenStreetMapDir)
The directory where the openStreetMap files will be retrieved and
processed.
|
void |
setOpenstreetMapDownloadURL(String openstreetMapDownloadURL)
The HTTP URL of the directory Where openstreetmap streets files are to be
download from
|
void |
setOpenStreetMapFilesToDownload(String openStreetMapFilesToDownload)
The list of the Openstreetmap files to be download from the
openstreetMapDownloadURL . the several files will be separated by
OPTION_SEPARATOR . if null or empty, will be set to {
OPENSTREETMAP_DEFAULT_FILES_TO_DOWNLOAD |
void |
setOpenStreetMapFillIsIn(boolean openStreetMapFillIsIn) |
void |
setOpenStreetMapHouseNumberDir(String importerOpenStreetMapHouseNumberDir)
The directory where the openStreetMap files for house numbers will be retrieved and
processed.
|
void |
setOpenStreetMapHouseNumberFilesToDownload(String openStreetMapHouseNumberFilesToDownload)
The list of the Openstreetmap house number files to be download from the
openstreetMapHouseNumbersDownloadURL . the several files will be separated by
OPTION_SEPARATOR . if null or empty, will be set to {
OPENSTREETMAP_HOUSENUMBER_DEFAULT_FILES_TO_DOWNLOAD |
void |
setOpenstreetmapHouseNumberImporterEnabled(boolean openstreetmapHouseNumberImporterEnabled) |
void |
setOpenstreetMaphouseNumbersDownloadURL(String openstreetMapHouseNumberDownloadURL)
The HTTP URL of the directory Where openstreetmap house numbers files are to be
download from
|
void |
setOpenstreetmapImporterEnabled(boolean openstreetmapImporterEnabled) |
void |
setOpenStreetMapPoisDir(String openStreetMapPoisDir)
The directory where the openStreetMap POI files will be retrieved and
processed.
|
void |
setOpenstreetMapPoisDownloadURL(String openstreetMapPoisDownloadURL)
The HTTP URL of the directory Where openstreetmap POI files are to be
download from
|
void |
setOpenStreetMapPoisFilesToDownload(String openStreetMapPoisFilesToDownload)
The list of the Openstreetmap POI to be download from the
openstreetMapPoisDownloadURL . the several files will be separated by
OPTION_SEPARATOR . if null or empty, will be set to {
OPENSTREETMAP_POI_DEFAULT_FILES_TO_DOWNLOAD |
void |
setQuattroshapesDir(String quattroshapesDir)
The directory where the quattroshapes files will be retrieved and
processed.
|
void |
setQuattroshapesDownloadURL(String quattroshapesDownloadURL)
The HTTP URL of the directory Where quattroshapes files are to be
download from
|
void |
setQuattroshapesFilesToDownload(String quattroshapesFilesToDownload)
The list of the Openstreetmap POI to be download from the
openstreetMapPoisDownloadURL . the several files will be separated by
OPTION_SEPARATOR . if null or empty, will be set to {
OPENSTREETMAP_POI_DEFAULT_FILES_TO_DOWNLOAD |
void |
setQuattroshapesImporterEnabled(boolean quattroshapesImporterEnabled) |
void |
setRenameFilesAfterProcessing(boolean renameFilesAfterProcessing) |
void |
setRetrieveFiles(boolean retrieveFiles)
Whether we should download the geonames file or use the one already
present in the
geonamesDir |
void |
setSyncAdmCodesWithLinkedAdmOnes(boolean setAdmCodesWithLinkedAdmObject)
The linked Adm may not be the same as the one which would be found with
the ADMcodes from the csv file if TryToDetectAdmIfNotFound is set to
true. in this case error corecting is done. tis option determine if the
ADMXcode must be equals to the linked ADM or if they must be equals to
the value in the CSVFile note that the admXnames are always sync with the
Linked Adm if true : the AdmXcodes of the imported GisFeature will be the
gisFeature.getAdm.getAdmXcode.
|
void |
setTryToDetectAdmIfNotFound(boolean tryToDetectAdmIfNotFound)
If this option is set to true : The importer will try to detect Adm for
features if the AdmXcodes values does not correspond to a known Adm. it
is a process of error correction if set to false error correction is
disabled
|
void |
setWrongNumberOfFieldsThrows(boolean wrongNumberOfFieldsThrows)
Set to true this option force the import process to stop if an error is
throw.
|
public static final String PROPERTIES_CONFIG_FILE_CLASSPATH
public static final String OPENSTREETMAP_FILL_ISIN_FIELD_NAME
public static final String OPTION_SEPARATOR
public static final String REGEXP_SEPARATOR
public static final String IMPORTER_METADATA_RELATIVE_PATH
public static final String ALREADY_DONE_FILE_NAME
public static final String DEFAULT_FEATURE_CODE
public static final String DEFAULT_FEATURE_CLASS
public static final String BASE_ACCEPT_REGEX
public static final String DEFAULT_ACCEPT_REGEX_CITY
public static final String ACCEPT_ALL_REGEX_OPTION
public static final int DEFAULT_MAX_INSERT_BEFORE_FLUSH
maxInsertsBeforeFlush
public static final String OPENSTREETMAP_DEFAULT_FILES_TO_DOWNLOAD
public static final String OPENSTREETMAP_HOUSENUMBER_DEFAULT_FILES_TO_DOWNLOAD
public static final String OPENSTREETMAP_CITIES_DEFAULT_FILES_TO_DOWNLOAD
public static final String OPENSTREETMAP_POI_DEFAULT_FILES_TO_DOWNLOAD
public static final String QUATTROSHAPES_DEFAULT_FILES_TO_DOWNLOAD
public static final String GEONAMES_ALTERNATENAME_ZIP_FILE
public static final String GEONAMES_COMPRESSED_FILE_EXTENSION
public static final String OPENSTREETAMP_COMPRESSED_FILE_EXTENSION
public static final String GEONAMES_DEFAULT_FILES_TO_DOWNLOAD
public AdmExtracterStrategyOptions DEFAULT_ADM1_EXTRACTER_STRATEGY_OPTION
AdmExtracterStrategyOptions
public AdmExtracterStrategyOptions DEFAULT_ADM2_EXTRACTER_STRATEGY_OPTION
AdmExtracterStrategyOptions
public AdmExtracterStrategyOptions DEFAULT_ADM3_EXTRACTER_STRATEGY_OPTION
AdmExtracterStrategyOptions
public AdmExtracterStrategyOptions DEFAULT_ADM4_EXTRACTER_STRATEGY_OPTION
AdmExtracterStrategyOptions
protected static final org.slf4j.Logger logger
public boolean isGeonamesImporterEnabled()
public void setGeonamesImporterEnabled(boolean geonamesImporterEnabled)
geonamesImporterEnabled
- enable or disable Geonames importerisGeonamesImporterEnabled()
public String getGeonamesDownloadURL()
setGeonamesDownloadURL(String)
public void setGeonamesDownloadURL(String importerGeonamesDownloadURL)
importerGeonamesDownloadURL
- The optionpublic String getGeonamesDir()
setGeonamesDir(String)
public void setGeonamesDir(String importerGeonamesDir)
importerGeonamesDir
- the optionpublic boolean isGeonamesDownloadDirectoryAccessible()
public String getGeonamesFilesToDownload()
setGeonamesFilesToDownload(String)
public void setGeonamesFilesToDownload(String geonamesFilesToDownload)
geonamesDownloadURL
. the several files will be separated by
OPTION_SEPARATOR
, if not set or null, defaulting to GEONAMES_DEFAULT_FILES_TO_DOWNLOAD
geonamesFilesToDownload
- the filesToDownload to setpublic List<String> getGeonamesDownloadFilesListFromOption()
geonamesFilesToDownload
public String getGeonamesZipCodeDownloadURL()
setGeonamesZipCodeDownloadURL(String)
public void setGeonamesZipCodeDownloadURL(String geonamesZipCodeDownloadURL)
geonamesZipCodeDownloadURL
- The optionpublic String getGeonamesZipCodeDir()
public void setGeonamesZipCodeDir(String geonamesZipCodeDir)
geonamesZipCodeDir
- the optionpublic void setOpenstreetmapImporterEnabled(boolean openstreetmapImporterEnabled)
openstreetmapImporterEnabled
- enable or disable Openstreetmap importerisOpenstreetmapImporterEnabled()
public boolean isOpenstreetmapImporterEnabled()
isGeonamesImporterEnabled()
public String getOpenstreetMapDownloadURL()
setOpenstreetMapDownloadURL(String)
public void setOpenstreetMapDownloadURL(String openstreetMapDownloadURL)
openstreetMapDownloadURL
- The optionpublic String getOpenStreetMapDir()
setOpenStreetMapDir(String)
public void setOpenStreetMapDir(String importerOpenStreetMapDir)
importerOpenStreetMapDir
- the optionpublic boolean isOpenStreetMapDownloadDirectoryAccessible()
public String getOpenStreetMapFilesToDownload()
setOpenStreetMapFilesToDownload(String)
public void setOpenStreetMapFilesToDownload(String openStreetMapFilesToDownload)
openstreetMapDownloadURL
. the several files will be separated by
OPTION_SEPARATOR
. if null or empty, will be set to {
OPENSTREETMAP_DEFAULT_FILES_TO_DOWNLOAD
openStreetMapFilesToDownload
- The openstreetmap files to download to setpublic List<String> getOpenStreetMapDownloadFilesListFromOption()
openStreetMapFilesToDownload
public boolean isOpenstreetmapHouseNumberImporterEnabled()
isGeonamesImporterEnabled()
public void setOpenstreetmapHouseNumberImporterEnabled(boolean openstreetmapHouseNumberImporterEnabled)
openstreetmapHouseNumberImporterEnabled
- enable or disable Openstreetmap house numbers importerisOpenstreetmapImporterEnabled()
public String getOpenstreetMaphouseNumbersDownloadURL()
setOpenstreetMaphouseNumbersDownloadURL(String)
public void setOpenstreetMaphouseNumbersDownloadURL(String openstreetMapHouseNumberDownloadURL)
openstreetMapHouseNumberDownloadURL
- The optionpublic String getOpenStreetMapHouseNumberDir()
setOpenStreetMapHouseNumberDir(String)
public void setOpenStreetMapHouseNumberDir(String importerOpenStreetMapHouseNumberDir)
importerOpenStreetMapHouseNumberDir
- the optionpublic boolean isOpenStreetMapHouseNumberDownloadDirectoryAccessible()
public String getOpenStreetMapHouseNumberFilesToDownload()
setOpenStreetMapHouseNumberFilesToDownload(String)
public void setOpenStreetMapHouseNumberFilesToDownload(String openStreetMapHouseNumberFilesToDownload)
openstreetMapHouseNumbersDownloadURL
. the several files will be separated by
OPTION_SEPARATOR
. if null or empty, will be set to {
OPENSTREETMAP_HOUSENUMBER_DEFAULT_FILES_TO_DOWNLOAD
openStreetMapHouseNumberFilesToDownload
- The openstreetmap files to download to setpublic List<String> getOpenStreetMapHouseNumberDownloadFilesListFromOption()
openStreetMapHouseNumberFilesToDownload
public String getOpenstreetMapCitiesDownloadURL()
setOpenstreetMapCitiesDownloadURL(String)
public void setOpenstreetMapCitiesDownloadURL(String openstreetMapCitiesDownloadURL)
openstreetMapCitiesDownloadURL
- The optionpublic String getOpenStreetMapCitiesDir()
setOpenStreetMapCitiesDir(String)
public void setOpenStreetMapCitiesDir(String openStreetMapCitiesDir)
openStreetMapCitiesDir
- the optionpublic boolean isOpenStreetMapCitiesDirectoryAccessible()
public String getOpenStreetMapCitiesFilesToDownload()
setOpenStreetMapCitiesFilesToDownload(String)
public void setOpenStreetMapCitiesFilesToDownload(String openStreetMapCitiesFilesToDownload)
openstreetMapCitiesDownloadURL
. the several files will be separated by
OPTION_SEPARATOR
. if null or empty, will be set to {
OPENSTREETMAP_CITIES_DEFAULT_FILES_TO_DOWNLOAD
openStreetMapCitiesFilesToDownload
- The openstreetmap filesToDownload to setpublic List<String> getOpenStreetMapCitiesDownloadFilesListFromOption()
openStreetMapCitiesFilesToDownload
public String getOpenstreetMapPoisDownloadURL()
setOpenstreetMapPoisDownloadURL(String)
public void setOpenstreetMapPoisDownloadURL(String openstreetMapPoisDownloadURL)
openstreetMapPoisDownloadURL
- The optionpublic String getOpenStreetMapPoisDir()
setOpenStreetMapPoisDir(String)
public void setOpenStreetMapPoisDir(String openStreetMapPoisDir)
openStreetMapPoisDir
- the optionpublic boolean isOpenStreetMapPoisDirectoryAccessible()
public String getOpenStreetMapPoisFilesToDownload()
setOpenStreetMapPoisFilesToDownload(String)
public void setOpenStreetMapPoisFilesToDownload(String openStreetMapPoisFilesToDownload)
openstreetMapPoisDownloadURL
. the several files will be separated by
OPTION_SEPARATOR
. if null or empty, will be set to {
OPENSTREETMAP_POI_DEFAULT_FILES_TO_DOWNLOAD
openStreetMapPoisFilesToDownload
- The openstreetmap filesToDownload to setpublic List<String> getOpenStreetMapPoisDownloadFilesListFromOption()
openStreetMapCitiesFilesToDownload
public void setQuattroshapesImporterEnabled(boolean quattroshapesImporterEnabled)
enable
- or disable quattroshapes importerisQuattroshapesImporterEnabled()
public boolean isQuattroshapesImporterEnabled()
isQuattroshapesImporterEnabled()
public String getQuattroshapesDownloadURL()
setQuattroshapesDownloadURL(String)
public void setQuattroshapesDownloadURL(String quattroshapesDownloadURL)
quattroshapesDownloadURL
- The optionpublic String getQuattroshapesDir()
setQuattroshapesDir(String)
public void setQuattroshapesDir(String quattroshapesDir)
quattroshapesDir
- the optionpublic boolean isQuattroshapesDirectoryAccessible()
public String getQuattroshapesFilesToDownload()
setQuattroshapesFilesToDownload(String)
public void setQuattroshapesFilesToDownload(String quattroshapesFilesToDownload)
openstreetMapPoisDownloadURL
. the several files will be separated by
OPTION_SEPARATOR
. if null or empty, will be set to {
OPENSTREETMAP_POI_DEFAULT_FILES_TO_DOWNLOAD
openStreetMapPoisFilesToDownload
- The openstreetmap filesToDownload to setpublic List<String> getQuattroshapesFilesDownloadFilesListFromOption()
openStreetMapCitiesFilesToDownload
public AdmExtracterStrategyOptions getAdmExtracterStrategyOptionsForAdm(int admLevel)
DEFAULT_ADM3_EXTRACTER_STRATEGY_OPTION
and
DEFAULT_ADM4_EXTRACTER_STRATEGY_OPTION
public String getAcceptRegExString()
setAcceptRegExString(String)
public boolean isSyncAdmCodesWithLinkedAdmOnes()
setSyncAdmCodesWithLinkedAdmOnes(boolean)
public boolean isTryToDetectAdmIfNotFound()
setTryToDetectAdmIfNotFound(boolean)
public void setAcceptRegExString(String acceptRegExString)
DEFAULT_ACCEPT_REGEX_CITY
: import all adm city and countriesacceptRegExString
- the optionpublic void setSyncAdmCodesWithLinkedAdmOnes(boolean setAdmCodesWithLinkedAdmObject)
setAdmCodesWithLinkedAdmObject
- The option to setpublic void setTryToDetectAdmIfNotFound(boolean tryToDetectAdmIfNotFound)
tryToDetectAdmIfNotFound
- The optionpublic AdmExtracterStrategyOptions getAdm1ExtracterStrategyIfAlreadyExists()
setAdm1ExtracterStrategyIfAlreadyExists(AdmExtracterStrategyOptions)
public void setAdm1ExtracterStrategyIfAlreadyExists(AdmExtracterStrategyOptions adm1ExtracterStrategy)
adm1ExtracterStrategy
- The optionDEFAULT_ADM1_EXTRACTER_STRATEGY_OPTION
public AdmExtracterStrategyOptions getAdm2ExtracterStrategyIfAlreadyExists()
setAdm2ExtracterStrategyIfAlreadyExists(AdmExtracterStrategyOptions)
public void setAdm2ExtracterStrategyIfAlreadyExists(AdmExtracterStrategyOptions adm2ExtracterStrategy)
adm2ExtracterStrategy
- The optionDEFAULT_ADM2_EXTRACTER_STRATEGY_OPTION
public AdmExtracterStrategyOptions getAdm3ExtracterStrategyIfAlreadyExists()
setAdm3ExtracterStrategyIfAlreadyExists(AdmExtracterStrategyOptions)
public void setAdm3ExtracterStrategyIfAlreadyExists(AdmExtracterStrategyOptions adm3ExtracterStrategy)
adm3ExtracterStrategy
- The optionDEFAULT_ADM3_EXTRACTER_STRATEGY_OPTION
public AdmExtracterStrategyOptions getAdm4ExtracterStrategyIfAlreadyExists()
setAdm4ExtracterStrategyIfAlreadyExists(AdmExtracterStrategyOptions)
public void setAdm4ExtracterStrategyIfAlreadyExists(AdmExtracterStrategyOptions adm4ExtracterStrategy)
adm4ExtracterStrategy
- The optionDEFAULT_ADM3_EXTRACTER_STRATEGY_OPTION
public boolean isMissingRequiredFieldThrows()
setMissingRequiredFieldThrows(boolean)
,
MissingRequiredFieldException
public void setMissingRequiredFieldThrows(boolean missingRequiredFieldThrows)
missingRequiredFieldThrows
- The optionMissingRequiredFieldException
public boolean isWrongNumberOfFieldsThrows()
setWrongNumberOfFieldsThrows(boolean)
public void setWrongNumberOfFieldsThrows(boolean wrongNumberOfFieldsThrows)
wrongNumberOfFieldsThrows
- The optionpublic boolean isImportGisFeatureEmbededAlternateNames()
setImportGisFeatureEmbededAlternateNames(boolean)
public void setImportGisFeatureEmbededAlternateNames(boolean importGisFeatureEmbededAlternateNames)
importGisFeatureEmbededAlternateNames
- The optionpublic boolean isRetrieveFiles()
setRetrieveFiles(boolean)
public void setRetrieveFiles(boolean retrieveFiles)
geonamesDir
retrieveFiles
- The optionspublic String getAdm1FileName()
getAdm1FileName()
public void setAdm1FileName(String adm1FileName)
adm1FileName
- The optionpublic String getAdm2FileName()
getAdm2FileName()
public void setAdm2FileName(String adm2FileName)
adm2FileName
- The optionpublic String getAdm3FileName()
getAdm3FileName()
public void setAdm3FileName(String adm3FileName)
adm3FileName
- the adm3FileName to setpublic String getAdm4FileName()
getAdm4FileName()
public void setAdm4FileName(String adm4FileName)
adm4FileName
- The optionpublic String getCountriesFileName()
getCountriesFileName()
public void setCountriesFileName(String countryFileName)
countryFileName
- The optionpublic String getLanguageFileName()
setLanguageFileName(String)
public void setLanguageFileName(String languageFileName)
languageFileName
- The optionpublic String getAlternateNamesFileName()
getAlternateNamesFileName()
public void setAlternateNamesFileName(String alternateNamesFileName)
alternateNamesFileName
- The optionpublic void setMaxInsertsBeforeFlush(int maxInsertsBeforeFlush)
DEFAULT_MAX_INSERT_BEFORE_FLUSH
maxInsertsBeforeFlush
- The optionpublic int getMaxInsertsBeforeFlush()
setMaxInsertsBeforeFlush(int)
public boolean isRegexpCorrects()
public boolean isConfigCorrectForImport()
public boolean isAllFilesDownloadables()
public String getAlreadyDoneFilePath()
public String getImporterMetadataDirectoryPath()
public String createImporterMetadataDirIfItDoesnTExist()
public String getAlternateNameFeaturesFileName()
setAlternateNameFeaturesFileName(String)
public void setAlternateNameFeaturesFileName(String alternateNameFeaturesFileName)
alternateNameFeaturesFileName
- The name of the file to setgetAlternateNameFeaturesFileName()
public String getAlternateNameAdm1FileName()
setAlternateNameAdm1FileName(String)
public void setAlternateNameAdm1FileName(String alternateNameAdm1FileName)
alternateNameAdm1FileName
- The name of the file to setgetAlternateNameAdm1FileName()
public String getAlternateNameAdm2FileName()
setAlternateNameAdm2FileName(String)
public void setAlternateNameAdm2FileName(String alternateNameAdm2FileName)
alternateNameAdm2FileName
- The name of the file to setgetAlternateNameAdm2FileName()
public String getAlternateNameCountryFileName()
setAlternateNameCountryFileName(String)
public void setAlternateNameCountryFileName(String alternateNameCountryFileName)
alternateNameCountryFileName
- The name of the file to setgetAlternateNameCountryFileName()
public boolean isOpenStreetMapFillIsIn()
public void setOpenStreetMapFillIsIn(boolean openStreetMapFillIsIn)
isOpenStreetMapFillIsIn()
public boolean isRenameFilesAfterProcessing()
public void setRenameFilesAfterProcessing(boolean renameFilesAfterProcessing)
Copyright © 2015. All rights reserved.