/*$************************************************************************************************
**
** $Id: Identifier.java 831 2006-05-01 00:27:23Z Desruisseaux $
**
** $URL: http://svn.code.sf.net/p/geoapi/code/branches/2.0.x/geoapi/src/main/java/org/opengis/metadata/Identifier.java $
**
** Copyright (C) 2004-2005 Open GIS Consortium, Inc.
** All Rights Reserved. http://www.opengis.org/legal/
**
*************************************************************************************************/
package org.opengis.metadata;
// OpenGIS direct dependencies
import org.opengis.metadata.citation.Citation;
// Annotations
import org.opengis.annotation.UML;
import org.opengis.annotation.Extension;
import static org.opengis.annotation.Obligation.*;
import static org.opengis.annotation.Specification.*;
/**
* Value uniquely identifying an object within a namespace.
*
* @version Abstract specification 5.0
* @author Martin Desruisseaux (IRD)
* @since GeoAPI 2.0
*/
@UML(identifier="MD_Identifier", specification=ISO_19115)
public interface Identifier {
/**
* Key for the {@value} property to be given to the
* {@linkplain org.opengis.referencing.ObjectFactory CRS factory} createFoo(…)
* methods. This is used for setting the value to be returned by {@link #getCode}.
*
* @see #getCode
*/
String CODE_KEY = "code";
/**
* Key for the {@value} property to be given to the
* {@linkplain org.opengis.referencing.ObjectFactory CRS factory} createFoo(…)
* methods. This is used for setting the value to be returned by {@link #getAuthority}.
*
* @see #getAuthority
*/
String AUTHORITY_KEY = "authority";
/**
* Key for the {@value} property to be given to the
* {@linkplain org.opengis.referencing.ObjectFactory CRS factory} createFoo(…)
* methods. This is used for setting the value to be returned by {@link #getVersion}.
*
* @see #getVersion
*/
String VERSION_KEY = "version";
/**
* Alphanumeric value identifying an instance in the namespace.
*/
@UML(identifier="code", obligation=MANDATORY, specification=ISO_19115)
String getCode();
/**
* Organization or party responsible for definition and maintenance of the
* {@linkplain #getCode code}.
*/
@UML(identifier="authority", obligation=OPTIONAL, specification=ISO_19115)
Citation getAuthority();
/**
* Identifier of the version of the associated code, as specified by the code authority.
* This version is included only when the {@linkplain #getCode code} uses versions. When
* appropriate, the edition is identified by the effective date, coded using ISO 8601 date
* format.
*/
@Extension
String getVersion();
}
Ads help maintain this website.