Class GpxType

java.lang.Object
slash.navigation.gpx.binding11.GpxType

public class GpxType extends Object
GPX documents contain a metadata header, followed by waypoints, routes, and tracks. You can add your own elements to the extensions section of the GPX document.

Java class for gpxType complex type

.

The following schema fragment specifies the expected content contained within this class.


 <complexType name="gpxType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="metadata" type="{http://www.topografix.com/GPX/1/1}metadataType" minOccurs="0"/>
         <element name="wpt" type="{http://www.topografix.com/GPX/1/1}wptType" maxOccurs="unbounded" minOccurs="0"/>
         <element name="rte" type="{http://www.topografix.com/GPX/1/1}rteType" maxOccurs="unbounded" minOccurs="0"/>
         <element name="trk" type="{http://www.topografix.com/GPX/1/1}trkType" maxOccurs="unbounded" minOccurs="0"/>
         <element name="extensions" type="{http://www.topografix.com/GPX/1/1}extensionsType" minOccurs="0"/>
       </sequence>
       <attribute name="version" use="required" type="{http://www.w3.org/2001/XMLSchema}string" fixed="1.1" />
       <attribute name="creator" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

    • metadata

      protected MetadataType metadata
      Metadata about the file.
    • wpt

      protected List<WptType> wpt
      A list of waypoints.
    • rte

      protected List<RteType> rte
      A list of routes.
    • trk

      protected List<TrkType> trk
      A list of tracks.
    • extensions

      protected ExtensionsType extensions
      You can add extend GPX by adding your own elements from another schema here.
    • version

      protected String version
      You must include the version number in your GPX document.
    • creator

      protected String creator
      You must include the name or URL of the software that created your GPX document. This allows others to inform the creator of a GPX instance document that fails to validate.
  • Constructor Details

    • GpxType

      public GpxType()
  • Method Details

    • getMetadata

      public MetadataType getMetadata()
      Metadata about the file.
      Returns:
      possible object is MetadataType
    • setMetadata

      public void setMetadata(MetadataType value)
      Sets the value of the metadata property.
      Parameters:
      value - allowed object is MetadataType
      See Also:
    • getWpt

      public List<WptType> getWpt()
      A list of waypoints. Gets the value of the wpt property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore, any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a set method for the wpt property.

      For example, to add a new item, do as follows:

       getWpt().add(newItem);
       

      Objects of the following type(s) are allowed in the list WptType

      Returns:
      The value of the wpt property.
    • getRte

      public List<RteType> getRte()
      A list of routes. Gets the value of the rte property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore, any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a set method for the rte property.

      For example, to add a new item, do as follows:

       getRte().add(newItem);
       

      Objects of the following type(s) are allowed in the list RteType

      Returns:
      The value of the rte property.
    • getTrk

      public List<TrkType> getTrk()
      A list of tracks. Gets the value of the trk property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore, any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a set method for the trk property.

      For example, to add a new item, do as follows:

       getTrk().add(newItem);
       

      Objects of the following type(s) are allowed in the list TrkType

      Returns:
      The value of the trk property.
    • getExtensions

      public ExtensionsType getExtensions()
      You can add extend GPX by adding your own elements from another schema here.
      Returns:
      possible object is ExtensionsType
    • setExtensions

      public void setExtensions(ExtensionsType value)
      Sets the value of the extensions property.
      Parameters:
      value - allowed object is ExtensionsType
      See Also:
    • getVersion

      public String getVersion()
      You must include the version number in your GPX document.
      Returns:
      possible object is String
    • setVersion

      public void setVersion(String value)
      Sets the value of the version property.
      Parameters:
      value - allowed object is String
      See Also:
    • getCreator

      public String getCreator()
      You must include the name or URL of the software that created your GPX document. This allows others to inform the creator of a GPX instance document that fails to validate.
      Returns:
      possible object is String
    • setCreator

      public void setCreator(String value)
      Sets the value of the creator property.
      Parameters:
      value - allowed object is String
      See Also: