org.geotools.metadata.iso.extent
Class SpatialTemporalExtentImpl

java.lang.Object
  extended byorg.geotools.metadata.iso.MetadataEntity
      extended byorg.geotools.metadata.iso.extent.TemporalExtentImpl
          extended byorg.geotools.metadata.iso.extent.SpatialTemporalExtentImpl
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable, org.opengis.metadata.extent.SpatialTemporalExtent, org.opengis.metadata.extent.TemporalExtent

public class SpatialTemporalExtentImpl
extends TemporalExtentImpl
implements org.opengis.metadata.extent.SpatialTemporalExtent

Boundary enclosing the dataset, expressed as the closed set of (x,y) coordinates of the polygon. The last point replicates first point.

Since:
2.1
Version:
$Id: SpatialTemporalExtentImpl.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
SpatialTemporalExtentImpl()
          Constructs an initially empty spatial-temporal extent.
SpatialTemporalExtentImpl(java.util.Date startTime, java.util.Date endTime, java.util.Collection spatialExtent)
          Creates a spatial-temporal extent initialized to the specified values.
 
Method Summary
 boolean equals(java.lang.Object object)
          Compare this spatial-temporal extent with the specified object for equality.
protected  void freeze()
          Declare this metadata and all its attributes as unmodifiable.
 java.util.Collection getSpatialExtent()
          Returns the spatial extent component of composite spatial and temporal extent.
 int hashCode()
          Returns a hash code value for this extent.
 void setSpatialExtent(java.util.Collection newValues)
          Set the spatial extent component of composite spatial and temporal extent.
 java.lang.String toString()
          Returns a string representation of this extent.
 
Methods inherited from class org.geotools.metadata.iso.extent.TemporalExtentImpl
getEndTime, getStartTime, setEndTime, setStartTime
 
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

SpatialTemporalExtentImpl

public SpatialTemporalExtentImpl()
Constructs an initially empty spatial-temporal extent.


SpatialTemporalExtentImpl

public SpatialTemporalExtentImpl(java.util.Date startTime,
                                 java.util.Date endTime,
                                 java.util.Collection spatialExtent)
Creates a spatial-temporal extent initialized to the specified values.

Method Detail

getSpatialExtent

public java.util.Collection getSpatialExtent()
Returns the spatial extent component of composite spatial and temporal extent.

Specified by:
getSpatialExtent in interface org.opengis.metadata.extent.SpatialTemporalExtent
Returns:
The list of geographic extents (never ).

setSpatialExtent

public void setSpatialExtent(java.util.Collection newValues)
Set the spatial extent component of composite spatial and temporal extent.


freeze

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

Overrides:
freeze in class MetadataEntity

equals

public boolean equals(java.lang.Object object)
Compare this spatial-temporal extent with the specified object for equality.

Overrides:
equals in class TemporalExtentImpl

hashCode

public int hashCode()
Returns a hash code value for this extent.

Overrides:
hashCode in class TemporalExtentImpl

toString

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

Overrides:
toString in class TemporalExtentImpl
To Do:
Provides a more elaborated implementation.


Copyright © GeoTools. All Rights Reserved.