Enum Class GPX.Version

java.lang.Object
java.lang.Enum<GPX.Version>
io.jenetics.jpx.GPX.Version
All Implemented Interfaces:
Serializable, Comparable<GPX.Version>, Constable
Enclosing class:
GPX

public static enum GPX.Version extends Enum<GPX.Version>
Represents the available GPX versions.
Since:
1.3
Version:
1.3
  • Enum Constant Details

    • V10

      public static final GPX.Version V10
      The GPX version 1.0. This version can be read and written.
      See Also:
    • V11

      public static final GPX.Version V11
      The GPX version 1.1. This is the default version and can be read and written.
      See Also:
  • Method Details

    • values

      public static GPX.Version[] 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

      public static GPX.Version valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public String 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

      public static GPX.Version of(String version)
      Return the version from the given version string. Allowed values are "1.0" and "1.1".
      Parameters:
      version - the version string
      Returns:
      the version from the given version string
      Throws:
      IllegalArgumentException - if the given version string is neither "1.0" nor "1.1"
      NullPointerException - if the given version string is null