org.openstreetmap.osm.Osm Maven / Gradle / Ivy
Show all versions of osm-to-netex Show documentation
/*
* Licensed under the EUPL, Version 1.2 or – as soon they will be approved by
* the European Commission - subsequent versions of the EUPL (the "Licence");
* You may not use this work except in compliance with the Licence.
* You may obtain a copy of the Licence at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2018.03.21 at 02:35:20 PM CET
//
package org.openstreetmap.osm;
import javax.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://openstreetmap.org/osm/0.6}bounds"/>
* <element ref="{http://openstreetmap.org/osm/0.6}node" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://openstreetmap.org/osm/0.6}way" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://openstreetmap.org/osm/0.6}relation" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="version" type="{http://www.w3.org/2001/XMLSchema}float" fixed="0.6" />
* <attribute name="generator" type="{http://www.w3.org/2001/XMLSchema}string" fixed="CGImap 0.0.2" />
* </restriction>
* </complexContent>
* </complexType>
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"bounds",
"node",
"way",
"relation"
})
@XmlRootElement(name = "osm")
public class Osm {
@XmlElement(required = true)
protected Bounds bounds;
protected List node;
protected List way;
protected List relation;
@XmlAttribute(name = "version")
protected Float version;
@XmlAttribute(name = "generator")
protected String generator;
/**
* Gets the value of the bounds property.
*
* @return possible object is
* {@link Bounds }
*/
public Bounds getBounds() {
return bounds;
}
/**
* Sets the value of the bounds property.
*
* @param value allowed object is
* {@link Bounds }
*/
public void setBounds(Bounds value) {
this.bounds = value;
}
/**
* Gets the value of the node 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 node property.
*
*
* For example, to add a new item, do as follows:
*
* getNode().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Node }
*/
public List getNode() {
if (node == null) {
node = new ArrayList();
}
return this.node;
}
/**
* Gets the value of the way 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 way property.
*
*
* For example, to add a new item, do as follows:
*
* getWay().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Way }
*/
public List getWay() {
if (way == null) {
way = new ArrayList();
}
return this.way;
}
/**
* Gets the value of the relation 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 relation property.
*
*
* For example, to add a new item, do as follows:
*
* getRelation().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Relation }
*/
public List getRelation() {
if (relation == null) {
relation = new ArrayList();
}
return this.relation;
}
/**
* Gets the value of the version property.
*
* @return possible object is
* {@link Float }
*/
public float getVersion() {
if (version == null) {
return 0.6F;
} else {
return version;
}
}
/**
* Sets the value of the version property.
*
* @param value allowed object is
* {@link Float }
*/
public void setVersion(Float value) {
this.version = value;
}
/**
* Gets the value of the generator property.
*
* @return possible object is
* {@link String }
*/
public String getGenerator() {
if (generator == null) {
return "CGImap 0.0.2";
} else {
return generator;
}
}
/**
* Sets the value of the generator property.
*
* @param value allowed object is
* {@link String }
*/
public void setGenerator(String value) {
this.generator = value;
}
}