001/*
002 *    GeoAPI - Java interfaces for OGC/ISO standards
003 *    Copyright © 2004-2023 Open Geospatial Consortium, Inc.
004 *    http://www.geoapi.org
005 *
006 *    Licensed under the Apache License, Version 2.0 (the "License");
007 *    you may not use this file except in compliance with the License.
008 *    You may obtain a copy of the License at
009 *
010 *        http://www.apache.org/licenses/LICENSE-2.0
011 *
012 *    Unless required by applicable law or agreed to in writing, software
013 *    distributed under the License is distributed on an "AS IS" BASIS,
014 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015 *    See the License for the specific language governing permissions and
016 *    limitations under the License.
017 */
018package org.opengis.metadata.extent;
019
020import org.opengis.annotation.UML;
021import org.opengis.temporal.TemporalPrimitive;
022
023import static org.opengis.annotation.Obligation.*;
024import static org.opengis.annotation.Specification.*;
025
026
027/**
028 * Time period covered by the content of the resource.
029 *
030 * @author  Martin Desruisseaux (IRD)
031 * @version 3.1
032 * @since   1.0
033 */
034@UML(identifier="EX_TemporalExtent", specification=ISO_19115)
035public interface TemporalExtent {
036    /**
037     * Period for the content of the resource.
038     * Should be an instance of {@link org.opengis.temporal.Period}.
039     *
040     * @return the period for the content.
041     */
042    @UML(identifier="extent", obligation=MANDATORY, specification=ISO_19115)
043    TemporalPrimitive getExtent();
044}