net.refractions.udig.project
Class AdaptableFeature

java.lang.Object
  extended by net.refractions.udig.project.AdaptableFeature
All Implemented Interfaces:
UDIGAdaptableDecorator

public class AdaptableFeature
extends java.lang.Object
implements UDIGAdaptableDecorator

TODO Purpose of net.refractions.udig.project

Since:
1.0.0
Author:
Jesse

Constructor Summary
AdaptableFeature(Feature feature)
          Construct AdaptableFeature.
AdaptableFeature(Feature feature, ILayer layer)
          Construct AdaptableFeature.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Object getAdapter(java.lang.Class adapter)
           
 java.lang.Object getAttribute(int index)
           
 java.lang.Object getAttribute(java.lang.String xPath)
           
 java.lang.Object[] getAttributes(java.lang.Object[] attributes)
           
 Envelope getBounds()
           
 Geometry getDefaultGeometry()
           
 FeatureType getFeatureType()
           
 java.lang.String getID()
           
 int getNumberOfAttributes()
           
 java.lang.Object getObject()
          Get the "real" object.
 FeatureCollection getParent()
           
 int hashCode()
           
 void setAttribute(int position, java.lang.Object val)
           
 void setAttribute(java.lang.String xPath, java.lang.Object attribute)
           
 void setDefaultGeometry(Geometry geometry)
           
 void setParent(FeatureCollection collection)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AdaptableFeature

public AdaptableFeature(Feature feature)
Construct AdaptableFeature.

Parameters:
feature - the wrapped feature
evaluationObject - the layer that contains the feature.

AdaptableFeature

public AdaptableFeature(Feature feature,
                        ILayer layer)
Construct AdaptableFeature.

Parameters:
feature - the wrapped feature
layer - the layer that contains the feature.
Method Detail

getAdapter

public java.lang.Object getAdapter(java.lang.Class adapter)
See Also:
org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)

getParent

public FeatureCollection getParent()
See Also:
org.geotools.feature.Feature#getParent()

setParent

public void setParent(FeatureCollection collection)
See Also:
org.geotools.feature.Feature#setParent(org.geotools.feature.FeatureCollection)

getFeatureType

public FeatureType getFeatureType()
See Also:
org.geotools.feature.Feature#getFeatureType()

getID

public java.lang.String getID()
See Also:
org.geotools.feature.Feature#getID()

getAttributes

public java.lang.Object[] getAttributes(java.lang.Object[] attributes)
See Also:
org.geotools.feature.Feature#getAttributes(java.lang.Object[])

getAttribute

public java.lang.Object getAttribute(java.lang.String xPath)
See Also:
org.geotools.feature.Feature#getAttribute(java.lang.String)

getAttribute

public java.lang.Object getAttribute(int index)
See Also:
org.geotools.feature.Feature#getAttribute(int)

setAttribute

public void setAttribute(int position,
                         java.lang.Object val)
                  throws IllegalAttributeException,
                         java.lang.ArrayIndexOutOfBoundsException
Throws:
IllegalAttributeException
java.lang.ArrayIndexOutOfBoundsException
See Also:
org.geotools.feature.Feature#setAttribute(int, java.lang.Object)

getNumberOfAttributes

public int getNumberOfAttributes()
See Also:
org.geotools.feature.Feature#getNumberOfAttributes()

setAttribute

public void setAttribute(java.lang.String xPath,
                         java.lang.Object attribute)
                  throws IllegalAttributeException
Throws:
IllegalAttributeException
See Also:
org.geotools.feature.Feature#setAttribute(java.lang.String, java.lang.Object)

getDefaultGeometry

public Geometry getDefaultGeometry()
See Also:
org.geotools.feature.Feature#getDefaultGeometry()

setDefaultGeometry

public void setDefaultGeometry(Geometry geometry)
                        throws IllegalAttributeException
Throws:
IllegalAttributeException
See Also:
org.geotools.feature.Feature#setDefaultGeometry(com.vividsolutions.jts.geom.Geometry)

getBounds

public Envelope getBounds()
See Also:
org.geotools.feature.Feature#getBounds()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

getObject

public java.lang.Object getObject()
Description copied from interface: UDIGAdaptableDecorator
Get the "real" object.

Specified by:
getObject in interface UDIGAdaptableDecorator
Returns:
the "real object
See Also:
net.refractions.udig.project.ui.internal.adapters.UDIGAdaptableDecorator#getObject()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object