Package org.goplanit.gtfs.converter
Class GtfsConverterReaderSettingsImpl
- java.lang.Object
-
- org.goplanit.gtfs.converter.GtfsConverterReaderSettingsImpl
-
- All Implemented Interfaces:
ConverterReaderSettings
,GtfsConverterReaderSettings
- Direct Known Subclasses:
GtfsConverterReaderSettingsWithModeMapping
public class GtfsConverterReaderSettingsImpl extends Object implements GtfsConverterReaderSettings
Capture all common user configurable settings regarding GTFS converter readers for raw (static) GTFS feeds. To be used as base class not as actual settings class to be exposed.- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description GtfsConverterReaderSettingsImpl(String countryName)
Constructor with user defined source localeGtfsConverterReaderSettingsImpl(URL inputSource, String countryName)
Constructor with user defined source locale
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCountryName()
The country name used to initialise GTFS defaults forURL
getInputSource()
Collect the input dir to usevoid
logSettings()
Log settings usedvoid
reset()
be able to reset all settings if neededvoid
setInputFile(String inputFile)
Set the input source to use, we attempt to extract a URL from the String directly herevoid
setInputSource(URL inputSource)
Set the input dir to use
-
-
-
Constructor Detail
-
GtfsConverterReaderSettingsImpl
public GtfsConverterReaderSettingsImpl(String countryName)
Constructor with user defined source locale- Parameters:
countryName
- to base source locale on
-
-
Method Detail
-
reset
public void reset()
be able to reset all settings if needed- Specified by:
reset
in interfaceConverterReaderSettings
-
getCountryName
public final String getCountryName()
The country name used to initialise GTFS defaults for- Specified by:
getCountryName
in interfaceGtfsConverterReaderSettings
- Returns:
- country name
-
setInputSource
public final void setInputSource(URL inputSource)
Set the input dir to use- Parameters:
inputSource
- to use
-
setInputFile
public void setInputFile(String inputFile)
Set the input source to use, we attempt to extract a URL from the String directly here- Parameters:
inputFile
- to use
-
getInputSource
public final URL getInputSource()
Collect the input dir to use- Specified by:
getInputSource
in interfaceGtfsConverterReaderSettings
- Returns:
- input directory
-
logSettings
public void logSettings()
Log settings used- Specified by:
logSettings
in interfaceConverterReaderSettings
- Specified by:
logSettings
in interfaceGtfsConverterReaderSettings
-
-