Package org.openstreetmap.josm.io
Enum Class UrlPatterns.GpxUrlPattern
- All Implemented Interfaces:
Serializable,Comparable<UrlPatterns.GpxUrlPattern>,Constable,UrlPattern
- Enclosing class:
- UrlPatterns
public static enum UrlPatterns.GpxUrlPattern
extends Enum<UrlPatterns.GpxUrlPattern>
implements UrlPattern
Patterns for GPX download URLs.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionURL of the edit link from the OpenStreetMap trace pageExternal GPX fileExternal GPX scriptURL of HOT Tasking Manager (TM)URL of identified GPX trace on OpenStreetMap websiteURL of OSM API trackpoints endpointURL of identified GPX trace belonging to any user on OpenStreetMap website -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisGpxFromServer(String url) Determines if the given URL denotes an OSM gpx-related API call.pattern()Returns the URL pattern.static UrlPatterns.GpxUrlPatternReturns the enum constant of this class with the specified name.static UrlPatterns.GpxUrlPattern[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.openstreetmap.josm.io.UrlPattern
matcher, matches, matches
-
Enum Constant Details
-
TRACE_ID
URL of identified GPX trace on OpenStreetMap website -
USER_TRACE_ID
URL of identified GPX trace belonging to any user on OpenStreetMap website -
EDIT_TRACE_ID
URL of the edit link from the OpenStreetMap trace page -
TRACKPOINTS_BBOX
URL of OSM API trackpoints endpoint -
TASKING_MANAGER
URL of HOT Tasking Manager (TM) -
EXTERNAL_GPX_SCRIPT
External GPX script -
EXTERNAL_GPX_FILE
External GPX file
-
-
Field Details
-
urlPattern
-
-
Constructor Details
-
GpxUrlPattern
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
pattern
Description copied from interface:UrlPatternReturns the URL pattern.- Specified by:
patternin interfaceUrlPattern- Returns:
- the URL pattern
-
isGpxFromServer
Determines if the given URL denotes an OSM gpx-related API call.- Parameters:
url- The url to check- Returns:
- true if the url matches "Trace ID" API call or "Trackpoints bbox" API call, false otherwise
- See Also:
-