org.geotools.metadata.iso.extent
Class ExtentImpl

java.lang.Object
  extended byorg.geotools.metadata.iso.MetadataEntity
      extended byorg.geotools.metadata.iso.extent.ExtentImpl
All Implemented Interfaces:
java.lang.Cloneable, org.opengis.metadata.extent.Extent, java.io.Serializable

public class ExtentImpl
extends MetadataEntity
implements org.opengis.metadata.extent.Extent

Information about spatial, vertical, and temporal extent. This interface has three optional attributes (geographic elements, temporal elements, and vertical elements) and an element called description. At least one of the four shall be used.

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

Field Summary
static org.opengis.metadata.extent.Extent WORLD
          A geographic extent ranging from 180?W to 180?E and 90?S to 90?N.
 
Fields inherited from class org.geotools.metadata.iso.MetadataEntity
LOGGER
 
Constructor Summary
ExtentImpl()
          Constructs an initially empty extent.
 
Method Summary
 boolean equals(java.lang.Object object)
          Compare this extent with the specified object for equality.
protected  void freeze()
          Declares this metadata and all its attributes as unmodifiable.
 org.opengis.util.InternationalString getDescription()
          Returns the spatial and temporal extent for the referring object.
static org.opengis.metadata.extent.GeographicBoundingBox getGeographicBoundingBox(org.opengis.metadata.extent.Extent extent)
          Convenience method returning a single geographic bounding box from the specified extent.
 java.util.Collection getGeographicElements()
          Provides geographic component of the extent of the referring object
 java.util.Collection getTemporalElements()
          Provides temporal component of the extent of the referring object
 java.util.Collection getVerticalElements()
          Provides vertical component of the extent of the referring object
 int hashCode()
          Returns a hash code value for this extent.
 void setDescription(org.opengis.util.InternationalString newValue)
          Set the spatial and temporal extent for the referring object.
 void setGeographicElements(java.util.Collection newValues)
          Set geographic component of the extent of the referring object
 void setTemporalElements(java.util.Collection newValues)
          Set temporal component of the extent of the referring object
 void setVerticalElements(java.util.Collection newValues)
          Set vertical component of the extent of the referring object
 java.lang.String toString()
          Returns a string representation of this extent.
 
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
 

Field Detail

WORLD

public static final org.opengis.metadata.extent.Extent WORLD
A geographic extent ranging from 180?W to 180?E and 90?S to 90?N.

Since:
2.2
Constructor Detail

ExtentImpl

public ExtentImpl()
Constructs an initially empty extent.

Method Detail

getDescription

public org.opengis.util.InternationalString getDescription()
Returns the spatial and temporal extent for the referring object.

Specified by:
getDescription in interface org.opengis.metadata.extent.Extent

setDescription

public void setDescription(org.opengis.util.InternationalString newValue)
Set the spatial and temporal extent for the referring object.


getGeographicElements

public java.util.Collection getGeographicElements()
Provides geographic component of the extent of the referring object

Specified by:
getGeographicElements in interface org.opengis.metadata.extent.Extent

setGeographicElements

public void setGeographicElements(java.util.Collection newValues)
Set geographic component of the extent of the referring object


getTemporalElements

public java.util.Collection getTemporalElements()
Provides temporal component of the extent of the referring object

Specified by:
getTemporalElements in interface org.opengis.metadata.extent.Extent

setTemporalElements

public void setTemporalElements(java.util.Collection newValues)
Set temporal component of the extent of the referring object


getVerticalElements

public java.util.Collection getVerticalElements()
Provides vertical component of the extent of the referring object

Specified by:
getVerticalElements in interface org.opengis.metadata.extent.Extent

setVerticalElements

public void setVerticalElements(java.util.Collection newValues)
Set vertical component of the extent of the referring object


getGeographicBoundingBox

public static org.opengis.metadata.extent.GeographicBoundingBox getGeographicBoundingBox(org.opengis.metadata.extent.Extent extent)
Convenience method returning a single geographic bounding box from the specified extent. If no bounding box was found, then this method returns . If more than one box is found, then boxes are added together.

Since:
2.2

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)
Compare this extent with the specified object for equality.


hashCode

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


toString

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



Copyright © GeoTools. All Rights Reserved.