Class GpxType
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 Summary
FieldsModifier and TypeFieldDescriptionprotected StringYou must include the name or URL of the software that created your GPX document.protected ExtensionsTypeYou can add extend GPX by adding your own elements from another schema here.protected MetadataTypeMetadata about the file.A list of routes.A list of tracks.protected StringYou must include the version number in your GPX document.A list of waypoints. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionYou must include the name or URL of the software that created your GPX document.You can add extend GPX by adding your own elements from another schema here.Metadata about the file.getRte()A list of routes.getTrk()A list of tracks.You must include the version number in your GPX document.getWpt()A list of waypoints.voidsetCreator(String value) Sets the value of the creator property.voidsetExtensions(ExtensionsType value) Sets the value of the extensions property.voidsetMetadata(MetadataType value) Sets the value of the metadata property.voidsetVersion(String value) Sets the value of the version property.
-
Field Details
-
metadata
Metadata about the file. -
wpt
A list of waypoints. -
rte
A list of routes. -
trk
A list of tracks. -
extensions
You can add extend GPX by adding your own elements from another schema here. -
version
You must include the version number in your GPX document. -
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
Metadata about the file.- Returns:
- possible object is
MetadataType
-
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
setmethod 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
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
setmethod 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
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
setmethod 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
You can add extend GPX by adding your own elements from another schema here.- Returns:
- possible object is
ExtensionsType
-
getVersion
You must include the version number in your GPX document.- Returns:
- possible object is
String
-
setVersion
Sets the value of the version property.- Parameters:
value- allowed object isString- See Also:
-
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
Sets the value of the creator property.- Parameters:
value- allowed object isString- See Also:
-