org.geotools.metadata.iso.extent
Class GeographicExtentImpl

java.lang.Object
  extended byorg.geotools.metadata.iso.MetadataEntity
      extended byorg.geotools.metadata.iso.extent.GeographicExtentImpl
All Implemented Interfaces:
java.lang.Cloneable, org.opengis.metadata.extent.GeographicExtent, java.io.Serializable
Direct Known Subclasses:
BoundingPolygonImpl, GeographicBoundingBoxImpl, GeographicDescriptionImpl

public class GeographicExtentImpl
extends MetadataEntity
implements org.opengis.metadata.extent.GeographicExtent

Base class for geographic area of the dataset.

Since:
2.1
Version:
$Id: GeographicExtentImpl.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
GeographicExtentImpl()
          Constructs an initially empty geographic extent.
GeographicExtentImpl(boolean inclusion)
          Constructs a geographic extent initialized with the specified inclusion value.
GeographicExtentImpl(org.opengis.metadata.extent.GeographicExtent extent)
          Constructs a geographic extent initialized to the same values than the specified one.
 
Method Summary
 boolean equals(java.lang.Object object)
          Compares this GeographicExtent with the specified object for equality.
protected  void freeze()
          Declares this metadata and all its attributes as unmodifiable.
 boolean getInclusion()
          Indication of whether the bounding polygon encompasses an area covered by the data (inclusion) or an area where data is not present (exclusion).
 int hashCode()
          Returns a hash code value for this extent.
 void setInclusion(boolean newValue)
          Set whether the bounding polygon encompasses an area covered by the data (inclusion) or an area where data is not present (exclusion).
 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
 

Constructor Detail

GeographicExtentImpl

public GeographicExtentImpl()
Constructs an initially empty geographic extent.


GeographicExtentImpl

public GeographicExtentImpl(org.opengis.metadata.extent.GeographicExtent extent)
Constructs a geographic extent initialized to the same values than the specified one.

Since:
2.2

GeographicExtentImpl

public GeographicExtentImpl(boolean inclusion)
Constructs a geographic extent initialized with the specified inclusion value.

Method Detail

getInclusion

public boolean getInclusion()
Indication of whether the bounding polygon encompasses an area covered by the data (inclusion) or an area where data is not present (exclusion).

Specified by:
getInclusion in interface org.opengis.metadata.extent.GeographicExtent
Returns:
for inclusion, or for exclusion.

setInclusion

public void setInclusion(boolean newValue)
Set whether the bounding polygon encompasses an area covered by the data (inclusion) or an area where data is not present (exclusion).


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 GeographicExtent 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.

To Do:
Provides a more elaborated implementation.


Copyright © GeoTools. All Rights Reserved.