org.geotools.metadata.iso.spatial
Class DimensionImpl

java.lang.Object
  extended byorg.geotools.metadata.iso.MetadataEntity
      extended byorg.geotools.metadata.iso.spatial.DimensionImpl
All Implemented Interfaces:
java.lang.Cloneable, org.opengis.metadata.spatial.Dimension, java.io.Serializable

public class DimensionImpl
extends MetadataEntity
implements org.opengis.metadata.spatial.Dimension

Axis properties.

Since:
2.1
Version:
$Id: DimensionImpl.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux, Toura?vane
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.geotools.metadata.iso.MetadataEntity
LOGGER
 
Constructor Summary
DimensionImpl()
          Constructs an initially empty dimension.
DimensionImpl(org.opengis.metadata.spatial.DimensionNameType dimensionName, int dimensionSize)
           
 
Method Summary
 boolean equals(java.lang.Object object)
          Compares this dimension with the specified object for equality.
protected  void freeze()
          Declares this metadata and all its attributes as unmodifiable.
 org.opengis.metadata.spatial.DimensionNameType getDimensionName()
          Name of the axis.
 int getDimensionSize()
          Number of elements along the axis.
 double getResolution()
          Degree of detail in the grid dataset.
 int hashCode()
          Returns a hash code value for this dimension.
 void setDimensionName(org.opengis.metadata.spatial.DimensionNameType newValue)
          Set the name of the axis.
 void setDimensionSize(int newValue)
          Set the number of elements along the axis.
 void setResolution(double newValue)
          Set the degree of detail in the grid dataset.
 java.lang.String toString()
          Returns a string representation of this dimension.
 
Methods inherited from class org.geotools.metadata.iso.MetadataEntity
appendLineSeparator, checkWritePermission, copyCollection, isModifiable, nonNullCollection, unmodifiable, unmodifiable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DimensionImpl

public DimensionImpl()
Constructs an initially empty dimension.


DimensionImpl

public DimensionImpl(org.opengis.metadata.spatial.DimensionNameType dimensionName,
                     int dimensionSize)
Method Detail

getDimensionName

public org.opengis.metadata.spatial.DimensionNameType getDimensionName()
Name of the axis.

Specified by:
getDimensionName in interface org.opengis.metadata.spatial.Dimension

setDimensionName

public void setDimensionName(org.opengis.metadata.spatial.DimensionNameType newValue)
Set the name of the axis.


getDimensionSize

public int getDimensionSize()
Number of elements along the axis.

Specified by:
getDimensionSize in interface org.opengis.metadata.spatial.Dimension

setDimensionSize

public void setDimensionSize(int newValue)
Set the number of elements along the axis.


getResolution

public double getResolution()
Degree of detail in the grid dataset.

Specified by:
getResolution in interface org.opengis.metadata.spatial.Dimension

setResolution

public void setResolution(double newValue)
Set the degree of detail in the grid dataset.


freeze

protected void freeze()
Declares this metadata and all its attributes as unmodifiable.

Overrides:
freeze in class MetadataEntity

equals

public boolean equals(java.lang.Object object)
Compares this dimension with the specified object for equality.


hashCode

public int hashCode()
Returns a hash code value for this dimension. For performance reason, this method do not uses all attributes for computing the hash code. Instead, it uses the attributes that are the most likely to be unique.


toString

public java.lang.String toString()
Returns a string representation of this dimension.



Copyright © GeoTools. All Rights Reserved.