public static enum MainApplication.Option extends java.lang.Enum<MainApplication.Option>
Enum Constant and Description |
---|
DEBUG
--debug Print debugging messages to console
|
DOWNLOAD
--download=minlat,minlon,maxlat,maxlon Download the bounding box
--download=<URL> Download the location at the URL (with lat=x&lon=y&zoom=z) --download=<filename> Open a file (any file type that can be opened with File/Open) |
DOWNLOADGPS
--downloadgps=minlat,minlon,maxlat,maxlon Download the bounding box as raw GPS
--downloadgps=<URL> Download the location at the URL (with lat=x&lon=y&zoom=z) as raw GPS |
GEOMETRY
--geometry=widthxheight(+|-)x(+|-)y Standard unix geometry argument
|
HELP
--help|-h Show this help
|
LANGUAGE
--language=<language> Set the language
|
LOAD_PREFERENCES
--load-preferences=<url-to-xml> Changes preferences according to the XML file
|
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=<searchstring> Select with the given search
|
SET
--set=<key>=<value> Set preference key to value
|
TRACE
--trace Print detailed debugging messages to console
|
VERSION
--version Displays the JOSM version and exits
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name |
private boolean |
requiresArgument |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<MainApplication.Option,java.util.Collection<java.lang.String>> |
fromStringMap(java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> opts) |
java.lang.String |
getName()
Replies the option name
|
boolean |
requiresArgument()
Determines if this option requires an argument.
|
static MainApplication.Option |
valueOf(java.lang.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 DEBUG
public static final MainApplication.Option TRACE
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 java.lang.String name
private boolean requiresArgument
public static MainApplication.Option[] values()
for (MainApplication.Option c : MainApplication.Option.values()) System.out.println(c);
public static MainApplication.Option valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getName()
public boolean requiresArgument()
true
if this option requires an argument, false
otherwisepublic static java.util.Map<MainApplication.Option,java.util.Collection<java.lang.String>> fromStringMap(java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> opts)