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;
21:
22: // J2SE direct dependencies
23: import java.util.Collection;
24:
25: // OpenGIS dependencies
26: import org.opengis.metadata.citation.Citation;
27: import org.opengis.metadata.PortrayalCatalogueReference;
28:
29: /**
30: * Information identifying the portrayal catalogue used.
31: *
32: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/metadata/src/main/java/org/geotools/metadata/iso/PortrayalCatalogueReferenceImpl.java $
33: * @version $Id: PortrayalCatalogueReferenceImpl.java 25189 2007-04-17 13:23:47Z desruisseaux $
34: * @author Martin Desruisseaux
35: * @author Touraïvane
36: *
37: * @since 2.1
38: */
39: public class PortrayalCatalogueReferenceImpl extends MetadataEntity
40: implements PortrayalCatalogueReference {
41: /**
42: * Serial number for compatibility with different versions.
43: */
44: private static final long serialVersionUID = -3095277682987563157L;
45:
46: /**
47: * Bibliographic reference to the portrayal catalogue cited.
48: */
49: private Collection portrayalCatalogueCitations;
50:
51: /**
52: * Construct an initially empty portrayal catalogue reference.
53: */
54: public PortrayalCatalogueReferenceImpl() {
55: }
56:
57: /**
58: * Constructs a metadata entity initialized with the values from the specified metadata.
59: *
60: * @since 2.4
61: */
62: public PortrayalCatalogueReferenceImpl(
63: final PortrayalCatalogueReference source) {
64: super (source);
65: }
66:
67: /**
68: * Creates a portrayal catalogue reference initialized to the given values.
69: */
70: public PortrayalCatalogueReferenceImpl(
71: final Collection portrayalCatalogueCitations) {
72: setPortrayalCatalogueCitations(portrayalCatalogueCitations);
73: }
74:
75: /**
76: * Bibliographic reference to the portrayal catalogue cited.
77: */
78: public synchronized Collection getPortrayalCatalogueCitations() {
79: return portrayalCatalogueCitations = nonNullCollection(
80: portrayalCatalogueCitations, Citation.class);
81: }
82:
83: /**
84: * Set bibliographic reference to the portrayal catalogue cited.
85: */
86: public synchronized void setPortrayalCatalogueCitations(
87: Collection newValues) {
88: portrayalCatalogueCitations = copyCollection(newValues,
89: portrayalCatalogueCitations, Citation.class);
90: }
91: }
|