Class 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>
     
    • Constructor Detail

      • GpxType

        public GpxType()
    • Method Detail

      • 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
      • getWpt

        public List<WptType> getWpt()
        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 JAXB 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

      • getRte

        public List<RteType> getRte()
        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 JAXB 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

      • getTrk

        public List<TrkType> getTrk()
        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 JAXB 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

      • 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