public static enum UrlPatterns.GpxUrlPattern extends java.lang.Enum<UrlPatterns.GpxUrlPattern> implements UrlPattern
Enum Constant and Description |
---|
EDIT_TRACE_ID
URL of the edit link from the OpenStreetMap trace page
|
EXTERNAL_GPX_FILE
External GPX file
|
EXTERNAL_GPX_SCRIPT
External GPX script
|
TASKING_MANAGER
URL of HOT Tasking Manager (TM)
|
TRACE_ID
URL of identified GPX trace on OpenStreetMap website
|
TRACKPOINTS_BBOX
URL of OSM API trackpoints endpoint
|
USER_TRACE_ID
URL of identified GPX trace belonging to any user on OpenStreetMap website
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
urlPattern |
Modifier and Type | Method and Description |
---|---|
static boolean |
isGpxFromServer(java.lang.String url)
Determines if the given URL denotes an OSM gpx-related API call.
|
java.lang.String |
pattern()
Returns the URL pattern.
|
static UrlPatterns.GpxUrlPattern |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UrlPatterns.GpxUrlPattern[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
matcher, matches, matches
public static final UrlPatterns.GpxUrlPattern TRACE_ID
public static final UrlPatterns.GpxUrlPattern USER_TRACE_ID
public static final UrlPatterns.GpxUrlPattern EDIT_TRACE_ID
public static final UrlPatterns.GpxUrlPattern TRACKPOINTS_BBOX
public static final UrlPatterns.GpxUrlPattern TASKING_MANAGER
public static final UrlPatterns.GpxUrlPattern EXTERNAL_GPX_SCRIPT
public static final UrlPatterns.GpxUrlPattern EXTERNAL_GPX_FILE
private final java.lang.String urlPattern
public static UrlPatterns.GpxUrlPattern[] values()
for (UrlPatterns.GpxUrlPattern c : UrlPatterns.GpxUrlPattern.values()) System.out.println(c);
public static UrlPatterns.GpxUrlPattern 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 pattern()
UrlPattern
pattern
in interface UrlPattern
public static boolean isGpxFromServer(java.lang.String url)
url
- The url to checkGpxData.fromServer