public enum OnlineResource extends 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 | Method and Description |
---|---|
void |
checkOfflineAccess(String downloadString,
String resourceString)
Ensures resource is not accessed in offline mode.
|
String |
getLocName()
Replies the localized name.
|
static OnlineResource |
valueOf(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
public static OnlineResource[] values()
for (OnlineResource c : OnlineResource.values()) System.out.println(c);
public static OnlineResource 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 final String getLocName()
public final void checkOfflineAccess(String downloadString, 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