001: /*
002: * GeoTools - OpenSource mapping toolkit
003: * http://geotools.org
004: * (C) 2004-2006, GeoTools Project Managment Committee (PMC)
005: * (C) 2004, Institut de Recherche pour le Développement
006: *
007: * This library is free software; you can redistribute it and/or
008: * modify it under the terms of the GNU Lesser General Public
009: * License as published by the Free Software Foundation;
010: * version 2.1 of the License.
011: *
012: * This library is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * This package contains documentation from OpenGIS specifications.
018: * OpenGIS consortium's work is fully acknowledged here.
019: */
020: package org.geotools.metadata.iso.maintenance;
021:
022: // J2SE dependencies
023: import java.util.Set;
024: import java.util.Collections;
025:
026: // OpenGIS dependencies
027: import org.opengis.metadata.maintenance.ScopeDescription;
028:
029: // Geotools dependencies
030: import org.geotools.metadata.iso.MetadataEntity;
031:
032: /**
033: * Description of the class of information covered by the information.
034: *
035: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/metadata/src/main/java/org/geotools/metadata/iso/maintenance/ScopeDescriptionImpl.java $
036: * @version $Id: ScopeDescriptionImpl.java 25189 2007-04-17 13:23:47Z desruisseaux $
037: * @author Martin Desruisseaux
038: * @author Touraïvane
039: *
040: * @since 2.1
041: */
042: public class ScopeDescriptionImpl extends MetadataEntity implements
043: ScopeDescription {
044: /**
045: * Serial number for interoperability with different versions.
046: */
047: private static final long serialVersionUID = -5671299759930976286L;
048:
049: /**
050: * Dataset to which the information applies.
051: */
052: private String dataset;
053:
054: /**
055: * Class of information that does not fall into the other categories to
056: * which the information applies.
057: */
058: private String other;
059:
060: /**
061: * Creates an initially empty scope description.
062: */
063: public ScopeDescriptionImpl() {
064: }
065:
066: /**
067: * Constructs a metadata entity initialized with the values from the specified metadata.
068: *
069: * @since 2.4
070: */
071: public ScopeDescriptionImpl(final ScopeDescription source) {
072: super (source);
073: }
074:
075: /**
076: * Returns the attributes to which the information applies.
077: *
078: * @todo Not yet implemented.
079: */
080: public Set getAttributes() {
081: return Collections.EMPTY_SET;
082: }
083:
084: /**
085: * Returns the features to which the information applies.
086: *
087: * @todo Not yet implemented.
088: */
089: public Set getFeatures() {
090: return Collections.EMPTY_SET;
091: }
092:
093: /**
094: * Returns the feature instances to which the information applies.
095: *
096: * @todo Not yet implemented.
097: */
098: public Set getFeatureInstances() {
099: return Collections.EMPTY_SET;
100: }
101:
102: /**
103: * Returns the attribute instances to which the information applies.
104: *
105: * @since 2.4
106: *
107: * @todo Not yet implemented.
108: */
109: public Set getAttributeInstances() {
110: return Collections.EMPTY_SET;
111: }
112:
113: /**
114: * Returns the dataset to which the information applies.
115: *
116: * @since 2.4
117: */
118: public String getDataset() {
119: return dataset;
120: }
121:
122: /**
123: * Set the dataset to which the information applies.
124: *
125: * @since 2.4
126: */
127: public synchronized void setDataset(final String newValue) {
128: checkWritePermission();
129: dataset = newValue;
130: }
131:
132: /**
133: * Returns the class of information that does not fall into the other categories to
134: * which the information applies.
135: *
136: * @since 2.4
137: */
138: public String getOther() {
139: return other;
140: }
141:
142: /**
143: * Set the class of information that does not fall into the other categories to
144: * which the information applies.
145: *
146: * @since 2.4
147: */
148: public synchronized void setOther(final String newValue) {
149: checkWritePermission();
150: other = newValue;
151: }
152: }
|