Class Gpx

java.lang.Object
org.bremersee.gpx.model.Gpx
All Implemented Interfaces:
Serializable

public class Gpx extends Object implements Serializable
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>
 
See Also:
  • Field Details

  • Constructor Details

    • Gpx

      public Gpx()
  • Method Details

    • getMetadata

      public MetadataType getMetadata()
      Gets the value of the metadata property.
      Returns:
      possible object is MetadataType
    • setMetadata

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

      public List<WptType> getWpts()
      Gets the value of the wpts 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 wpts property.

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

          getWpts().add(newItem);
       

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

      Returns:
      The value of the wpts property.
    • getRtes

      public List<RteType> getRtes()
      Gets the value of the rtes 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 rtes property.

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

          getRtes().add(newItem);
       

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

      Returns:
      The value of the rtes property.
    • getTrks

      public List<TrkType> getTrks()
      Gets the value of the trks 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 trks property.

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

          getTrks().add(newItem);
       

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

      Returns:
      The value of the trks property.
    • getExtensions

      public ExtensionsType getExtensions()
      Gets the value of the extensions property.
      Returns:
      possible object is ExtensionsType
    • setExtensions

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

      public String getVersion()
      Gets the value of the version property.
      Returns:
      possible object is String
    • setVersion

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

      public String getCreator()
      Gets the value of the creator property.
      Returns:
      possible object is String
    • setCreator

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