Enum StreetsideDownloader.DOWNLOAD_MODE
- java.lang.Object
-
- java.lang.Enum<StreetsideDownloader.DOWNLOAD_MODE>
-
- org.openstreetmap.josm.plugins.streetside.io.download.StreetsideDownloader.DOWNLOAD_MODE
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<StreetsideDownloader.DOWNLOAD_MODE>
- Enclosing class:
- StreetsideDownloader
public static enum StreetsideDownloader.DOWNLOAD_MODE extends java.lang.Enum<StreetsideDownloader.DOWNLOAD_MODE>
Possible download modes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MANUAL_ONLYOSM_AREAVISIBLE_AREA
-
Field Summary
Fields Modifier and Type Field Description static StreetsideDownloader.DOWNLOAD_MODEDEFAULTprivate java.lang.Stringlabelprivate java.lang.StringprefId
-
Constructor Summary
Constructors Modifier Constructor Description privateDOWNLOAD_MODE(java.lang.String prefId, java.lang.String label)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StreetsideDownloader.DOWNLOAD_MODEfromLabel(java.lang.String label)static StreetsideDownloader.DOWNLOAD_MODEfromPrefId(java.lang.String prefId)java.lang.StringgetLabel()java.lang.StringgetPrefId()static StreetsideDownloader.DOWNLOAD_MODEvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static StreetsideDownloader.DOWNLOAD_MODE[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VISIBLE_AREA
public static final StreetsideDownloader.DOWNLOAD_MODE VISIBLE_AREA
-
OSM_AREA
public static final StreetsideDownloader.DOWNLOAD_MODE OSM_AREA
-
MANUAL_ONLY
public static final StreetsideDownloader.DOWNLOAD_MODE MANUAL_ONLY
-
-
Field Detail
-
DEFAULT
public static final StreetsideDownloader.DOWNLOAD_MODE DEFAULT
-
prefId
private final java.lang.String prefId
-
label
private final java.lang.String label
-
-
Constructor Detail
-
DOWNLOAD_MODE
private DOWNLOAD_MODE(java.lang.String prefId, java.lang.String label)
-
-
Method Detail
-
values
public static StreetsideDownloader.DOWNLOAD_MODE[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StreetsideDownloader.DOWNLOAD_MODE c : StreetsideDownloader.DOWNLOAD_MODE.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StreetsideDownloader.DOWNLOAD_MODE valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getPrefId
public java.lang.String getPrefId()
- Returns:
- the ID that is used to represent this download mode in the JOSM preferences
-
getLabel
public java.lang.String getLabel()
- Returns:
- the (internationalized) label describing this download mode
-
fromPrefId
public static StreetsideDownloader.DOWNLOAD_MODE fromPrefId(java.lang.String prefId)
-
fromLabel
public static StreetsideDownloader.DOWNLOAD_MODE fromLabel(java.lang.String label)
-
-