public enum OnlineResource extends java.lang.Enum<OnlineResource>
Enum Constant and Description |
---|
ALL
Value used to represent all online resources
|
JOSM_WEBSITE
The JOSM website, used for startup page, imagery/presets/styles/rules entries, help, etc.
|
OSM_API
The OSM API, used for download, upload, history, etc.
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
locName |
Modifier and Type | Method and Description |
---|---|
void |
checkOfflineAccess(java.lang.String downloadString,
java.lang.String resourceString)
Ensures resource is not accessed in offline mode.
|
java.lang.String |
getLocName()
Replies the localized name.
|
static OnlineResource |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OnlineResource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OnlineResource OSM_API
public static final OnlineResource JOSM_WEBSITE
public static final OnlineResource ALL
private final java.lang.String locName
public static OnlineResource[] values()
for (OnlineResource c : OnlineResource.values()) System.out.println(c);
public static OnlineResource 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 final java.lang.String getLocName()
public final void checkOfflineAccess(java.lang.String downloadString, java.lang.String resourceString)
downloadString
- The attempted download stringresourceString
- The resource download string that should not be accessedOfflineAccessException
- if resource is accessed in offline mode, in any protocol