org.geotools.metadata.iso.spatial
Class GeometricObjectsImpl

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

public class GeometricObjectsImpl
extends MetadataEntity
implements org.opengis.metadata.spatial.GeometricObjects

Number of objects, listed by geometric object type, used in the dataset.

Since:
2.1
Version:
$Id: GeometricObjectsImpl.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
GeometricObjectsImpl()
          Constructs an initially empty geometric objects.
GeometricObjectsImpl(org.opengis.metadata.spatial.GeometricObjectType geometricObjectType)
          Creates a geometric object initialized to the given type.
 
Method Summary
 boolean equals(java.lang.Object object)
          Compares this geometric objects with the specified object for equality.
protected  void freeze()
          Declares this metadata and all its attributes as unmodifiable.
 int getGeometricObjectCount()
          Total number of the point or vector object type occurring in the dataset.
 org.opengis.metadata.spatial.GeometricObjectType getGeometricObjectType()
          Total number of the point or vector object type occurring in the dataset.
 int hashCode()
          Returns a hash code value for this object.
 void setGeometricObjectCount(int newValue)
          Set the total number of the point or vector object type occurring in the dataset.
 void setGeometricObjectType(org.opengis.metadata.spatial.GeometricObjectType newValue)
          Set the total number of the point or vector object type occurring in the dataset.
 java.lang.String toString()
          Returns a string representation of this object.
 
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

GeometricObjectsImpl

public GeometricObjectsImpl()
Constructs an initially empty geometric objects.


GeometricObjectsImpl

public GeometricObjectsImpl(org.opengis.metadata.spatial.GeometricObjectType geometricObjectType)
Creates a geometric object initialized to the given type.

Method Detail

getGeometricObjectType

public org.opengis.metadata.spatial.GeometricObjectType getGeometricObjectType()
Total number of the point or vector object type occurring in the dataset.

Specified by:
getGeometricObjectType in interface org.opengis.metadata.spatial.GeometricObjects

setGeometricObjectType

public void setGeometricObjectType(org.opengis.metadata.spatial.GeometricObjectType newValue)
Set the total number of the point or vector object type occurring in the dataset.


getGeometricObjectCount

public int getGeometricObjectCount()
Total number of the point or vector object type occurring in the dataset.

Specified by:
getGeometricObjectCount in interface org.opengis.metadata.spatial.GeometricObjects

setGeometricObjectCount

public void setGeometricObjectCount(int newValue)
Set the total number of the point or vector object type occurring in the 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 geometric objects with the specified object for equality.


hashCode

public int hashCode()
Returns a hash code value for this object. 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 object.



Copyright © GeoTools. All Rights Reserved.