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.FeatureTypeList;
27: import org.opengis.metadata.SpatialAttributeSupplement;
28:
29: /**
30: * Spatial attributes in the application schema for the feature types.
31: *
32: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/metadata/src/main/java/org/geotools/metadata/iso/SpatialAttributeSupplementImpl.java $
33: * @version $Id: SpatialAttributeSupplementImpl.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 SpatialAttributeSupplementImpl extends MetadataEntity
40: implements SpatialAttributeSupplement {
41: /**
42: * Serial number for compatibility with different versions.
43: */
44: private static final long serialVersionUID = 273337004694210422L;
45:
46: /**
47: * Provides information about the list of feature types with the same spatial representation.
48: */
49: private Collection featureTypeList;
50:
51: /**
52: * Construct an initially empty spatial attribute supplement.
53: */
54: public SpatialAttributeSupplementImpl() {
55: }
56:
57: /**
58: * Constructs a metadata entity initialized with the values from the specified metadata.
59: *
60: * @since 2.4
61: */
62: public SpatialAttributeSupplementImpl(
63: final SpatialAttributeSupplement source) {
64: super (source);
65: }
66:
67: /**
68: * Creates a spatial attribute supplement initialized to the given values.
69: */
70: public SpatialAttributeSupplementImpl(
71: final Collection featureTypeList) {
72: setFeatureTypeList(featureTypeList);
73: }
74:
75: /**
76: * Provides information about the list of feature types with the same spatial representation.
77: */
78: public synchronized Collection getFeatureTypeList() {
79: return featureTypeList = nonNullCollection(featureTypeList,
80: FeatureTypeList.class);
81: }
82:
83: /**
84: * Set information about the list of feature types with the same spatial representation.
85: */
86: public synchronized void setFeatureTypeList(
87: final Collection newValues) {
88: featureTypeList = copyCollection(newValues, featureTypeList,
89: FeatureTypeList.class);
90: }
91: }
|