/*
* Geotoolkit - An Open Source Java GIS Toolkit
* http://www.geotoolkit.org
*
* (C) 2008 - 2012, Geomatys
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*/
package org.geotoolkit.gml.xml.v321;
import java.io.Serializable;
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.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
/**
* <p>Java class for TimeClockType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="TimeClockType">
* <complexContent>
* <extension base="{http://www.opengis.net/gml/3.2}TimeReferenceSystemType">
* <sequence>
* <element name="referenceEvent" type="{http://www.opengis.net/gml/3.2}StringOrRefType"/>
* <element name="referenceTime" type="{http://www.w3.org/2001/XMLSchema}time"/>
* <element name="utcReference" type="{http://www.w3.org/2001/XMLSchema}time"/>
* <element name="dateBasis" type="{http://www.opengis.net/gml/3.2}TimeCalendarPropertyType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TimeClockType", propOrder = {
"referenceEvent",
"referenceTime",
"utcReference",
"dateBasis"
})
public class TimeClockType
extends TimeReferenceSystemType implements Serializable
{
@XmlElement(required = true)
private StringOrRefType referenceEvent;
@XmlElement(required = true)
@XmlSchemaType(name = "time")
private XMLGregorianCalendar referenceTime;
@XmlElement(required = true)
@XmlSchemaType(name = "time")
private XMLGregorianCalendar utcReference;
private List<TimeCalendarPropertyType> dateBasis;
/**
* Gets the value of the referenceEvent property.
*
* @return
* possible object is
* {@link StringOrRefType }
*
*/
public StringOrRefType getReferenceEvent() {
return referenceEvent;
}
/**
* Sets the value of the referenceEvent property.
*
* @param value
* allowed object is
* {@link StringOrRefType }
*
*/
public void setReferenceEvent(StringOrRefType value) {
this.referenceEvent = value;
}
/**
* Gets the value of the referenceTime property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getReferenceTime() {
return referenceTime;
}
/**
* Sets the value of the referenceTime property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setReferenceTime(XMLGregorianCalendar value) {
this.referenceTime = value;
}
/**
* Gets the value of the utcReference property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getUtcReference() {
return utcReference;
}
/**
* Sets the value of the utcReference property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setUtcReference(XMLGregorianCalendar value) {
this.utcReference = value;
}
/**
* Gets the value of the dateBasis 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 dateBasis property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getDateBasis().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link TimeCalendarPropertyType }
*
*
*/
public List<TimeCalendarPropertyType> getDateBasis() {
if (dateBasis == null) {
dateBasis = new ArrayList<TimeCalendarPropertyType>();
}
return this.dateBasis;
}
}