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.XmlSchemaType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
/**
* <p>Java class for osmBasicType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="osmBasicType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{}tag" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="id" use="required" type="{}ID" />
* <attribute name="uid" type="{}ID" />
* <attribute name="user" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="timestamp" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
* <attribute name="changeset" type="{}ID" />
* <attribute name="version" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
* <attribute name="visible" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "osmBasicType", propOrder = {
"tag"
})
@XmlSeeAlso({
Relation.class,
Way.class,
Node.class
})
public class OsmBasicType {
protected List<Tag> tag;
@XmlAttribute(name = "id", required = true)
protected long id;
@XmlAttribute(name = "uid")
protected Long uid;
@XmlAttribute(name = "user")
protected String user;
@XmlAttribute(name = "timestamp")
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar timestamp;
@XmlAttribute(name = "changeset")
protected Long changeset;
@XmlAttribute(name = "version", required = true)
protected int version;
@XmlAttribute(name = "visible")
protected Boolean visible;
/**
* Gets the value of the tag 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 tag property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTag().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Tag }
*
*
*/
public List<Tag> getTag() {
if (tag == null) {
tag = new ArrayList<Tag>();
}
return this.tag;
}
/**
* Gets the value of the id property.
*
*/
public long getId() {
return id;
}
/**
* Sets the value of the id property.
*
*/
public void setId(long value) {
this.id = value;
}
/**
* Gets the value of the uid property.
*
* @return
* possible object is
* {@link Long }
*
*/
public Long getUid() {
return uid;
}
/**
* Sets the value of the uid property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setUid(Long value) {
this.uid = value;
}
/**
* Gets the value of the user property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUser() {
return user;
}
/**
* Sets the value of the user property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUser(String value) {
this.user = 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;
}
/**
* Gets the value of the changeset property.
*
* @return
* possible object is
* {@link Long }
*
*/
public Long getChangeset() {
return changeset;
}
/**
* Sets the value of the changeset property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setChangeset(Long value) {
this.changeset = value;
}
/**
* Gets the value of the version property.
*
*/
public int getVersion() {
return version;
}
/**
* Sets the value of the version property.
*
*/
public void setVersion(int value) {
this.version = value;
}
/**
* Gets the value of the visible property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isVisible() {
return visible;
}
/**
* Sets the value of the visible property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setVisible(Boolean value) {
this.visible = value;
}
}