- All Implemented Interfaces:
Serializable,Comparable<GPX.Version>,Constable
- Enclosing class:
- GPX
Represents the available GPX versions.
- Since:
- 1.3
- Version:
- 1.3
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturn the namespace URI of this version.getValue()Return the version string value.static GPX.VersionReturn the version from the givenversionstring.static GPX.VersionReturns the enum constant of this class with the specified name.static GPX.Version[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
-
getValue
Return the version string value.- Returns:
- the version string value
-
getNamespaceURI
Return the namespace URI of this version.- Returns:
- the namespace URI of this version
- Since:
- 1.5
-
of
Return the version from the givenversionstring. Allowed values are "1.0" and "1.1".- Parameters:
version- the version string- Returns:
- the version from the given
versionstring - Throws:
IllegalArgumentException- if the givenversionstring is neither "1.0" nor "1.1"NullPointerException- if the givenversionstring isnull
-