TimeType.java
package sk.iway.iwcm.components.weather.met.no.generated;
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.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
/**
* Element containing forecasts
* for the specified time and duration.
*
*
* <p>Java class for timeType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="timeType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="location" type="{}locationType" maxOccurs="unbounded"/>
* </sequence>
* <attribute name="from" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
* <attribute name="to" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
* <attribute name="datatype">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="observation"/>
* <enumeration value="forecast"/>
* </restriction>
* </simpleType>
* </attribute>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "timeType", propOrder = {
"location"
})
public class TimeType {
@XmlElement(required = true)
protected List<LocationType> location;
@XmlAttribute(name = "from", required = true)
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar from;
@XmlAttribute(name = "to", required = true)
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar to;
@XmlAttribute(name = "datatype")
protected String datatype;
/**
* Gets the value of the location 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 location property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getLocation().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link LocationType }
*
*
*/
public List<LocationType> getLocation() {
if (location == null) {
location = new ArrayList<LocationType>();
}
return this.location;
}
/**
* Gets the value of the from property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getFrom() {
return from;
}
/**
* Sets the value of the from property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setFrom(XMLGregorianCalendar value) {
this.from = value;
}
/**
* Gets the value of the to property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getTo() {
return to;
}
/**
* Sets the value of the to property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setTo(XMLGregorianCalendar value) {
this.to = value;
}
/**
* Gets the value of the datatype property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDatatype() {
return datatype;
}
/**
* Sets the value of the datatype property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDatatype(String value) {
this.datatype = value;
}
}