Class TrksegType

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

public class TrksegType extends Object
A Track Segment holds a list of Track Points which are logically connected in order. To represent a single GPS track where GPS reception was lost, or the GPS receiver was turned off, start a new Track Segment for each continuous span of track data.

Java class for trksegType complex type

.

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


 <complexType name="trksegType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="trkpt" type="{http://www.topografix.com/GPX/1/1}wptType" maxOccurs="unbounded" minOccurs="0"/>
         <element name="extensions" type="{http://www.topografix.com/GPX/1/1}extensionsType" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

    • trkpt

      protected List<WptType> trkpt
      A Track Point holds the coordinates, elevation, timestamp, and metadata for a single point in a track.
    • extensions

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

    • TrksegType

      public TrksegType()
  • Method Details

    • getTrkpt

      public List<WptType> getTrkpt()
      A Track Point holds the coordinates, elevation, timestamp, and metadata for a single point in a track. Gets the value of the trkpt 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 trkpt property.

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

       getTrkpt().add(newItem);
       

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

      Returns:
      The value of the trkpt 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: