Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.instance.geometry
Class DefaultGeometryProperty<T extends com.vividsolutions.jts.geom.Geometry>

java.lang.Object
  extended by eu.esdihumboldt.hale.common.instance.geometry.DefaultGeometryProperty<T>
Type Parameters:
T - the geometry type
All Implemented Interfaces:
GeometryProperty<T>, Serializable

public class DefaultGeometryProperty<T extends com.vividsolutions.jts.geom.Geometry>
extends Object
implements GeometryProperty<T>

Default implementation of a GeometryProperty

Author:
Simon Templer
See Also:
Serialized Form

Constructor Summary
DefaultGeometryProperty(CRSDefinition crsDef, T geometry)
          Create a geometry property
 
Method Summary
 CRSDefinition getCRSDefinition()
          Get the definition of the coordinate reference system associated with the geometry.
 T getGeometry()
          Get the geometry.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultGeometryProperty

public DefaultGeometryProperty(CRSDefinition crsDef,
                               T geometry)
Create a geometry property

Parameters:
crsDef - the definition of the coordinate reference system, may be null
geometry - the geometry
Method Detail

getCRSDefinition

public CRSDefinition getCRSDefinition()
Description copied from interface: GeometryProperty
Get the definition of the coordinate reference system associated with the geometry.

Specified by:
getCRSDefinition in interface GeometryProperty<T extends com.vividsolutions.jts.geom.Geometry>
Returns:
the definition of the coordinate reference system or null
See Also:
GeometryProperty.getCRSDefinition()

getGeometry

public T getGeometry()
Description copied from interface: GeometryProperty
Get the geometry.

Specified by:
getGeometry in interface GeometryProperty<T extends com.vividsolutions.jts.geom.Geometry>
Returns:
the geometry
See Also:
GeometryProperty.getGeometry()

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d