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.XmlType; /** * <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 name="create" type="{}osmBasicChange" maxOccurs="unbounded" minOccurs="0"/> * <element name="modify" type="{}osmBasicChange" maxOccurs="unbounded" minOccurs="0"/> * <element name="delete" type="{}osmBasicChange" 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" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "create", "modify", "delete" }) @XmlRootElement(name = "osmChange") public class OsmChange { protected List<OsmBasicChange> create; protected List<OsmBasicChange> modify; protected List<OsmBasicChange> delete; @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; /** * Gets the value of the create 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 create property. * * <p> * For example, to add a new item, do as follows: * <pre> * getCreate().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link OsmBasicChange } * * */ public List<OsmBasicChange> getCreate() { if (create == null) { create = new ArrayList<OsmBasicChange>(); } return this.create; } /** * Gets the value of the modify 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 modify property. * * <p> * For example, to add a new item, do as follows: * <pre> * getModify().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link OsmBasicChange } * * */ public List<OsmBasicChange> getModify() { if (modify == null) { modify = new ArrayList<OsmBasicChange>(); } return this.modify; } /** * Gets the value of the delete 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 delete property. * * <p> * For example, to add a new item, do as follows: * <pre> * getDelete().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link OsmBasicChange } * * */ public List<OsmBasicChange> getDelete() { if (delete == null) { delete = new ArrayList<OsmBasicChange>(); } return this.delete; } /** * 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; } }