package osm.xmldatatypes;
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.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{}bounds" minOccurs="0"/>
* <element ref="{}node" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{}way" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{}relation" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{}changeset" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="version" use="required" type="{http://www.w3.org/2001/XMLSchema}float" fixed="0.6" />
* <attribute name="generator" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="copyright" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="attribution" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="license" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="timestamp" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"bounds",
"node",
"way",
"relation",
"changeset"
})
@XmlRootElement(name = "osm")
public class Osm {
protected Bounds bounds;
protected List<Node> node;
protected List<Way> way;
protected List<Relation> relation;
protected List<Changeset> changeset;
@XmlAttribute(name = "version", required = true)
protected float version;
@XmlAttribute(name = "generator")
protected String generator;
@XmlAttribute(name = "copyright")
protected String copyright;
@XmlAttribute(name = "attribution")
protected String attribution;
@XmlAttribute(name = "license")
protected String license;
@XmlAttribute(name = "timestamp")
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar timestamp;
/**
* 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.
*
* <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 node property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getNode().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Node }
*
*
*/
public List<Node> getNode() {
if (node == null) {
node = new ArrayList<Node>();
}
return this.node;
}
/**
* Gets the value of the way 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 way property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getWay().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Way }
*
*
*/
public List<Way> getWay() {
if (way == null) {
way = new ArrayList<Way>();
}
return this.way;
}
/**
* Gets the value of the relation 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 relation property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getRelation().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Relation }
*
*
*/
public List<Relation> getRelation() {
if (relation == null) {
relation = new ArrayList<Relation>();
}
return this.relation;
}
/**
* Gets the value of the changeset 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 changeset property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getChangeset().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Changeset }
*
*
*/
public List<Changeset> getChangeset() {
if (changeset == null) {
changeset = new ArrayList<Changeset>();
}
return this.changeset;
}
/**
* Gets the value of the version property.
*
*/
public float getVersion() {
return version;
}
/**
* Sets the value of the version property.
*
*/
public void setVersion(float value) {
this.version = value;
}
/**
* Gets the value of the generator property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getGenerator() {
return generator;
}
/**
* Sets the value of the generator property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setGenerator(String value) {
this.generator = value;
}
/**
* Gets the value of the copyright property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCopyright() {
return copyright;
}
/**
* Sets the value of the copyright property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCopyright(String value) {
this.copyright = value;
}
/**
* Gets the value of the attribution property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAttribution() {
return attribution;
}
/**
* Sets the value of the attribution property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAttribution(String value) {
this.attribution = value;
}
/**
* Gets the value of the license property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLicense() {
return license;
}
/**
* Sets the value of the license property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLicense(String value) {
this.license = value;
}
/**
* Gets the value of the timestamp property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getTimestamp() {
return timestamp;
}
/**
* Sets the value of the timestamp property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setTimestamp(XMLGregorianCalendar value) {
this.timestamp = value;
}
}