/* * Geotools 2 - OpenSource mapping toolkit * (C) 2003, Geotools Project Managment Committee (PMC) * (C) 2001, Institut de Recherche pour le Développement * * 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. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * * This package contains documentation from OpenGIS specifications. * OpenGIS consortium's work is fully acknowledged here. */ package org.geotools.cs; // Geotools dependencies import org.geotools.units.Unit; /** * Procedure used to measure time. * * @source $URL$ * @version $Id$ * @author Martin Desruisseaux * * @deprecated Replaced by {@link org.geotools.referencing.datum.DefaultTemporalDatum}. */ public class TemporalDatum extends Datum { /** * Serial number for interoperability with different versions. */ private static final long serialVersionUID = 6313740402733520130L; /** * Default datum for Universal Time Clock (UTC). * UTC is based on an atomic clock, while GMT is * based on astronomical observations. */ public static final TemporalDatum UTC = (TemporalDatum) pool.canonicalize( new TemporalDatum("UTC", DatumType.UTC)); /** * Creates a temporal datum from an enumerated type value. * * @param name Name to give new object. * @param type Type of temporal datum to create. */ public TemporalDatum(final CharSequence name, final DatumType.Temporal type) { super(name, type); } /** * Gets the type of the datum as an enumerated code. * * Note: return type will be changed to {@link DatumType.Temporal} * when we are able to use generic types (with JDK 1.5). */ public DatumType/*.Temporal*/ getDatumType() { return (DatumType.Temporal) super.getDatumType(); } /** * Fills the part inside "[...]". * Used for formatting Well Known Text (WKT). */ String addString(final StringBuffer buffer, final Unit context) { super.addString(buffer, context); return "TEMPORAL_DATUM"; } }