Package org.openstreetmap.josm.gui
Enum Class DownloadParamType
- All Implemented Interfaces:
Serializable,Comparable<DownloadParamType>,Constable
The type of a command line parameter, to be used in switch statements.
- Since:
- 12633 (extracted from
Main)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondownload(String param, Collection<File> fileList) Performs the downloaddownloadGps(String param) Performs the GPS downloadstatic DownloadParamTypeGuess the type of a parameter string specified on the command line with --download= or --downloadgps.static DownloadParamTypeReturns the enum constant of this class with the specified name.static DownloadParamType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
httpUrl
http(s):// or geo:// URL -
fileUrl
file:// URL -
bounds
geographic area -
fileName
local file name
-
-
Constructor Details
-
DownloadParamType
private DownloadParamType()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
download
Performs the download- Parameters:
param- represents the object to be downloadedfileList- files which shall be opened, should be added to this collection- Returns:
- the download task, or
null
-
downloadGps
Performs the GPS download- Parameters:
param- represents the object to be downloaded- Returns:
- the download task, or
null
-
paramType
Guess the type of a parameter string specified on the command line with --download= or --downloadgps.- Parameters:
s- A parameter string- Returns:
- The guessed parameter type
-