01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2004-2006, GeoTools Project Managment Committee (PMC)
05: * (C) 2004, Institut de Recherche pour le Développement
06: *
07: * This library is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU Lesser General Public
09: * License as published by the Free Software Foundation;
10: * version 2.1 of the License.
11: *
12: * This library is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * Lesser General Public License for more details.
16: *
17: * This package contains documentation from OpenGIS specifications.
18: * OpenGIS consortium's work is fully acknowledged here.
19: */
20: package org.geotools.metadata.iso.extent;
21:
22: // OpenGIS direct dependencies
23: import org.opengis.metadata.Identifier;
24: import org.opengis.metadata.extent.GeographicDescription;
25:
26: /**
27: * Description of the geographic area using identifiers.
28: *
29: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/metadata/src/main/java/org/geotools/metadata/iso/extent/GeographicDescriptionImpl.java $
30: * @version $Id: GeographicDescriptionImpl.java 25189 2007-04-17 13:23:47Z desruisseaux $
31: * @author Martin Desruisseaux
32: * @author Touraïvane
33: *
34: * @since 2.1
35: */
36: public class GeographicDescriptionImpl extends GeographicExtentImpl
37: implements GeographicDescription {
38: /**
39: * Serial number for interoperability with different versions.
40: */
41: private static final long serialVersionUID = 7250161161099782176L;
42:
43: /**
44: * The identifier used to represent a geographic area.
45: */
46: private Identifier geographicIdentifier;
47:
48: /**
49: * Constructs an initially empty geographic description.
50: */
51: public GeographicDescriptionImpl() {
52: }
53:
54: /**
55: * Constructs a metadata entity initialized with the values from the specified metadata.
56: *
57: * @since 2.4
58: */
59: public GeographicDescriptionImpl(final GeographicDescription source) {
60: super (source);
61: }
62:
63: /**
64: * Creates a geographic description initialized to the specified value.
65: */
66: public GeographicDescriptionImpl(
67: final Identifier geographicIdentifier) {
68: setGeographicIdentifier(geographicIdentifier);
69: }
70:
71: /**
72: * Returns the identifier used to represent a geographic area.
73: */
74: public Identifier getGeographicIdentifier() {
75: return geographicIdentifier;
76: }
77:
78: /**
79: * Set the identifier used to represent a geographic area.
80: */
81: public synchronized void setGeographicIdentifier(
82: final Identifier newValue) {
83: checkWritePermission();
84: geographicIdentifier = newValue;
85: }
86: }
|