/* * Copyright 2013 Serdar. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2013.03.14 at 08:42:30 PM MEZ // package de.fub.gpxmodule.xml; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlType; /** * * 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. * * * <p> * Java class for gpxType complex type. * * <p> * The following schema fragment specifies the expected content contained within * this class. * * <pre> * <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> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "gpxType", propOrder = { "metadata", "wpt", "rte", "trk", "extensions" }) public class Gpx { protected Metadata metadata; protected List<Wpt> wpt; protected List<Rte> rte; protected List<Trk> trk; protected Extensions extensions; @XmlAttribute(name = "version", required = false) protected String version; @XmlAttribute(name = "creator", required = false) protected String creator; /** * Gets the value of the metadata property. * * @return possible object is {@link Metadata } * */ public Metadata getMetadata() { return metadata; } /** * Sets the value of the metadata property. * * @param value allowed object is {@link Metadata } * */ public void setMetadata(Metadata value) { this.metadata = value; } /** * Gets the value of the wpt property. * * <p> * 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 * <CODE>set</CODE> method for the wpt property. * * <p> * For example, to add a new item, do as follows: * <pre> * getWpt().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list {@link Wpt } * * */ public List<Wpt> getWpt() { if (wpt == null) { wpt = new ArrayList<Wpt>(); } return this.wpt; } /** * Gets the value of the rte property. * * <p> * 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 * <CODE>set</CODE> method for the rte property. * * <p> * For example, to add a new item, do as follows: * <pre> * getRte().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list {@link Rte } * * */ public List<Rte> getRte() { if (rte == null) { rte = new ArrayList<Rte>(); } return this.rte; } /** * Gets the value of the trk property. * * <p> * 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 * <CODE>set</CODE> method for the trk property. * * <p> * For example, to add a new item, do as follows: * <pre> * getTrk().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list {@link Trk } * * */ public List<Trk> getTrk() { if (trk == null) { trk = new ArrayList<Trk>(); } return this.trk; } /** * Gets the value of the extensions property. * * @return possible object is {@link Extensions } * */ public Extensions getExtensions() { return extensions; } /** * Sets the value of the extensions property. * * @param value allowed object is {@link Extensions } * */ public void setExtensions(Extensions value) { this.extensions = value; } /** * Gets the value of the version property. * * @return possible object is {@link String } * */ public String getVersion() { if (version == null) { return "1.1"; } else { return version; } } /** * Sets the value of the version property. * * @param value allowed object is {@link String } * */ public void setVersion(String value) { this.version = value; } /** * Gets the value of the creator property. * * @return possible object is {@link String } * */ public String getCreator() { return creator; } /** * Sets the value of the creator property. * * @param value allowed object is {@link String } * */ public void setCreator(String value) { this.creator = value; } }