public static enum MainApplication.Option extends Enum<MainApplication.Option>
Enum Constant and Description |
---|
DOWNLOAD
--download=minlat,minlon,maxlat,maxlon Download the bounding box
--download= --download= |
DOWNLOADGPS
--downloadgps=minlat,minlon,maxlat,maxlon Download the bounding box as raw GPS
--downloadgps= |
GEOMETRY
--geometry=widthxheight(+|-)x(+|-)y Standard unix geometry argument
|
HELP
--help|-h Show this help
|
LANGUAGE
--language=
|
LOAD_PREFERENCES
--load-preferences=
|
MAXIMIZE
--maximize Launch in maximized mode
|
NO_MAXIMIZE
--no-maximize Do not launch in maximized mode
|
RESET_PREFERENCES
--reset-preferences Reset the preferences to default
|
SELECTION
--selection=
|
SET
--set=
|
VERSION
--version Displays the JOSM version and exits
|
Modifier and Type | Field and Description |
---|---|
private String |
name |
private boolean |
requiresArgument |
Modifier and Type | Method and Description |
---|---|
static Map<MainApplication.Option,Collection<String>> |
fromStringMap(Map<String,Collection<String>> opts) |
String |
getName()
Replies the option name
|
boolean |
requiresArgument()
Determines if this option requires an argument.
|
static MainApplication.Option |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MainApplication.Option[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MainApplication.Option HELP
public static final MainApplication.Option VERSION
public static final MainApplication.Option LANGUAGE
public static final MainApplication.Option RESET_PREFERENCES
public static final MainApplication.Option LOAD_PREFERENCES
public static final MainApplication.Option SET
public static final MainApplication.Option GEOMETRY
public static final MainApplication.Option NO_MAXIMIZE
public static final MainApplication.Option MAXIMIZE
public static final MainApplication.Option DOWNLOAD
public static final MainApplication.Option DOWNLOADGPS
public static final MainApplication.Option SELECTION
private boolean requiresArgument
public static MainApplication.Option[] values()
for (MainApplication.Option c : MainApplication.Option.values()) System.out.println(c);
public static MainApplication.Option valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean requiresArgument()
true
if this option requires an argument, false
otherwisepublic static Map<MainApplication.Option,Collection<String>> fromStringMap(Map<String,Collection<String>> opts)