es.unex.sextante.dataObjects
Class FeatureImpl

java.lang.Object
  extended by es.unex.sextante.dataObjects.FeatureImpl
All Implemented Interfaces:
IFeature

public class FeatureImpl
extends java.lang.Object
implements IFeature

A simple implementation of the IFeature interface

Author:
volaya

Constructor Summary
FeatureImpl(com.vividsolutions.jts.geom.Geometry geom, java.lang.Object[] values)
          Creates a new feature
 
Method Summary
 com.vividsolutions.jts.geom.Geometry getGeometry()
          Returns the geometry of the feature
 IRecord getRecord()
          Returns the set of attributes of the feature
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureImpl

public FeatureImpl(com.vividsolutions.jts.geom.Geometry geom,
                   java.lang.Object[] values)
Creates a new feature

Parameters:
geom - the geometry of the feature
values - the set of associated attributes
Method Detail

getGeometry

public com.vividsolutions.jts.geom.Geometry getGeometry()
Description copied from interface: IFeature
Returns the geometry of the feature

Specified by:
getGeometry in interface IFeature
Returns:
the geometry of the feature

getRecord

public IRecord getRecord()
Description copied from interface: IFeature
Returns the set of attributes of the feature

Specified by:
getRecord in interface IFeature
Returns:
the attributes of the feature