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.content;
021:
022: // OpenGIS dependencies
023: import org.opengis.metadata.content.RangeDimension;
024: import org.opengis.util.InternationalString;
025: import org.opengis.util.MemberName;
026:
027: // Geotools dependencies
028: import org.geotools.metadata.iso.MetadataEntity;
029:
030: /**
031: * Information on the range of each dimension of a cell measurement value.
032: *
033: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/metadata/src/main/java/org/geotools/metadata/iso/content/RangeDimensionImpl.java $
034: * @version $Id: RangeDimensionImpl.java 25189 2007-04-17 13:23:47Z desruisseaux $
035: * @author Martin Desruisseaux
036: * @author Touraïvane
037: *
038: * @since 2.1
039: */
040: public class RangeDimensionImpl extends MetadataEntity implements
041: RangeDimension {
042: /**
043: * Serial number for interoperability with different versions.
044: */
045: private static final long serialVersionUID = 4365956866782010460L;
046:
047: /**
048: * Number that uniquely identifies instances of bands of wavelengths on which a sensor
049: * operates.
050: */
051: private MemberName sequenceIdentifier;
052:
053: /**
054: * Description of the range of a cell measurement value.
055: */
056: private InternationalString descriptor;
057:
058: /**
059: * Constructs an initially empty range dimension.
060: */
061: public RangeDimensionImpl() {
062: }
063:
064: /**
065: * Constructs a metadata entity initialized with the values from the specified metadata.
066: *
067: * @since 2.4
068: */
069: public RangeDimensionImpl(final RangeDimension source) {
070: super (source);
071: }
072:
073: /**
074: * Returns the number that uniquely identifies instances of bands of wavelengths
075: * on which a sensor operates.
076: */
077: public MemberName getSequenceIdentifier() {
078: return sequenceIdentifier;
079: }
080:
081: /**
082: * Set the number that uniquely identifies instances of bands of wavelengths
083: * on which a sensor operates.
084: */
085: public synchronized void setSequenceIdentifier(
086: final MemberName newValue) {
087: checkWritePermission();
088: sequenceIdentifier = newValue;
089: }
090:
091: /**
092: * Returns the description of the range of a cell measurement value.
093: */
094: public InternationalString getDescriptor() {
095: return descriptor;
096: }
097:
098: /**
099: * Set the description of the range of a cell measurement value.
100: */
101: public synchronized void setDescriptor(
102: final InternationalString newValue) {
103: checkWritePermission();
104: descriptor = newValue;
105: }
106: }
|