org.geotools.feature
Class GeometryAttributeImpl

Object
  extended by PropertyImpl
      extended by AttributeImpl
          extended by GeometryAttributeImpl
All Implemented Interfaces:
Attribute, GeometryAttribute, Property

public class GeometryAttributeImpl
extends AttributeImpl
implements GeometryAttribute

TODO: rename to GeometricAttribute Provides ...TODO summary sentence

TODO Description

Example Use:


         GeometryAttributeType x = new GeometryAttributeType( ... );
         TODO code example
 

Since:
0.3 TODO: test wkt geometry parse.
Author:
Leprosy
Module:
modules/library/main (gt-main.jar)

Field Summary
protected  BoundingBox bounds
          bounds, derived
 
Fields inherited from class AttributeImpl
id
 
Fields inherited from class PropertyImpl
descriptor, userData, value
 
Constructor Summary
GeometryAttributeImpl(Object content, GeometryDescriptor descriptor, Identifier id)
           
 
Method Summary
 boolean equals(Object o)
          Override of equals.
 BoundingBox getBounds()
          Returns the non null envelope of this attribute.
 GeometryDescriptor getDescriptor()
           
 GeometryType getType()
           
 Geometry getValue()
           
 int hashCode()
          Override of hashCode.
 void setBounds(BoundingBox bbox)
          Set the bounds for the contained geometry.
 void setValue(Geometry geometry)
           
 void setValue(Object newValue)
          Override of setValue to convert the newValue to specified type if need be.
 String toString()
           
 
Methods inherited from class AttributeImpl
getIdentifier, parse, validate
 
Methods inherited from class PropertyImpl
getName, getUserData, isNillable
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface Attribute
getIdentifier, validate
 
Methods inherited from interface Property
getName, getUserData, isNillable
 

Field Detail

bounds

protected BoundingBox bounds
bounds, derived

Constructor Detail

GeometryAttributeImpl

public GeometryAttributeImpl(Object content,
                             GeometryDescriptor descriptor,
                             Identifier id)
Method Detail

getType

public GeometryType getType()
Specified by:
getType in interface Attribute
Specified by:
getType in interface GeometryAttribute
Specified by:
getType in interface Property
Overrides:
getType in class AttributeImpl

getDescriptor

public GeometryDescriptor getDescriptor()
Specified by:
getDescriptor in interface Attribute
Specified by:
getDescriptor in interface GeometryAttribute
Specified by:
getDescriptor in interface Property
Overrides:
getDescriptor in class AttributeImpl

getValue

public Geometry getValue()
Specified by:
getValue in interface Property
Overrides:
getValue in class PropertyImpl

setValue

public void setValue(Object newValue)
              throws IllegalArgumentException,
                     IllegalStateException
Description copied from class: AttributeImpl
Override of setValue to convert the newValue to specified type if need be.

Specified by:
setValue in interface Property
Overrides:
setValue in class AttributeImpl
Throws:
IllegalArgumentException
IllegalStateException

setValue

public void setValue(Geometry geometry)

setBounds

public void setBounds(BoundingBox bbox)
Set the bounds for the contained geometry.

Specified by:
setBounds in interface GeometryAttribute

getBounds

public BoundingBox getBounds()
Returns the non null envelope of this attribute. If the attribute's geometry is null the returned Envelope isNull() is true.

Specified by:
getBounds in interface GeometryAttribute
Returns:

equals

public boolean equals(Object o)
Description copied from class: AttributeImpl
Override of equals.

Overrides:
equals in class AttributeImpl
Returns:
whether other is equal to this attribute Type.

hashCode

public int hashCode()
Description copied from class: AttributeImpl
Override of hashCode.

Overrides:
hashCode in class AttributeImpl
Returns:
hashCode for this object.

toString

public String toString()
Overrides:
toString in class AttributeImpl


Copyright © 1996-2010 Geotools. All Rights Reserved.