/* * Geotoolkit - An Open Source Java GIS Toolkit * http://www.geotoolkit.org * * (C) 2008 - 2009, 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.wcs.xml.v111; 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 org.geotoolkit.gml.xml.v311.TimePositionType; /** * (Arliss) What does this mean? What do the TimeResolution and "frame" mean? * * <p>Java class for TimePeriodType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="TimePeriodType"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="BeginPosition" type="{http://www.opengis.net/gml}TimePositionType"/> * <element name="EndPosition" type="{http://www.opengis.net/gml}TimePositionType"/> * <element name="TimeResolution" type="{http://www.opengis.net/wcs}TimeDurationType" minOccurs="0"/> * </sequence> * <attribute name="frame" type="{http://www.w3.org/2001/XMLSchema}anyURI" default="#ISO-8601" /> * </restriction> * </complexContent> * </complexType> * </pre> * * @author Guilhem Legal * @module */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TimePeriodType", propOrder = { "beginPosition", "endPosition", "timeResolution" }) public class TimePeriodType { @XmlElement(name = "BeginPosition", required = true) protected TimePositionType beginPosition; @XmlElement(name = "EndPosition", required = true) protected TimePositionType endPosition; @XmlElement(name = "TimeResolution") protected String timeResolution; @XmlAttribute @XmlSchemaType(name = "anyURI") protected String frame; /** * an empty constructor used by JAXB */ TimePeriodType(){ } /** * an empty constructor used by JAXB */ public TimePeriodType(final TimePositionType beginPosition, final TimePositionType endPosition, final String timeResolution, final String frame){ this.beginPosition = beginPosition; this.endPosition = endPosition; this.frame = frame; this.timeResolution = timeResolution; } /** * Gets the value of the beginPosition property. */ public TimePositionType getBeginPosition() { return beginPosition; } /** * Gets the value of the endPosition property. */ public TimePositionType getEndPosition() { return endPosition; } /** * Gets the value of the timeResolution property. * */ public String getTimeResolution() { return timeResolution; } /** * Gets the value of the frame property. */ public String getFrame() { return frame; } }