org.openstreetmap.josm.gui
Enum MainApplication.Option
java.lang.Object
java.lang.Enum<MainApplication.Option>
org.openstreetmap.josm.gui.MainApplication.Option
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<MainApplication.Option>
- Enclosing class:
- MainApplication
public static enum MainApplication.Option
- extends java.lang.Enum<MainApplication.Option>
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
HELP
public static final MainApplication.Option HELP
VERSION
public static final MainApplication.Option VERSION
LANGUAGE
public static final MainApplication.Option LANGUAGE
RESET_PREFERENCES
public static final MainApplication.Option RESET_PREFERENCES
LOAD_PREFERENCES
public static final MainApplication.Option LOAD_PREFERENCES
SET
public static final MainApplication.Option SET
GEOMETRY
public static final MainApplication.Option GEOMETRY
NO_MAXIMIZE
public static final MainApplication.Option NO_MAXIMIZE
MAXIMIZE
public static final MainApplication.Option MAXIMIZE
DOWNLOAD
public static final MainApplication.Option DOWNLOAD
DOWNLOADGPS
public static final MainApplication.Option DOWNLOADGPS
SELECTION
public static final MainApplication.Option SELECTION
name
private java.lang.String name
requiresArgument
private boolean requiresArgument
values
public static MainApplication.Option[] 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 (MainApplication.Option c : MainApplication.Option.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static MainApplication.Option 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 name
java.lang.NullPointerException
- if the argument is null
getName
public java.lang.String getName()
requiresArgument
public boolean requiresArgument()
fromStringMap
public 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)
JOSM