org.geotools.feature
Class DecoratingFeature

java.lang.Object
  extended by org.geotools.feature.DecoratingFeature
All Implemented Interfaces:
org.opengis.feature.Attribute, org.opengis.feature.ComplexAttribute, org.opengis.feature.Feature, org.opengis.feature.Property, org.opengis.feature.simple.SimpleFeature

public class DecoratingFeature
extends java.lang.Object
implements org.opengis.feature.simple.SimpleFeature

Base class for feature decorators.

Subclasses should override those methods which are relevant to the decorator.

Since:
2.5
Author:
Justin Deoliveira, The Open Planning Project

Field Summary
protected  org.opengis.feature.simple.SimpleFeature delegate
           
 
Constructor Summary
DecoratingFeature(org.opengis.feature.simple.SimpleFeature delegate)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Object getAttribute(int index)
           
 java.lang.Object getAttribute(org.opengis.feature.type.Name arg0)
           
 java.lang.Object getAttribute(java.lang.String path)
           
 int getAttributeCount()
           
 java.util.List<java.lang.Object> getAttributes()
           
 org.opengis.geometry.BoundingBox getBounds()
           
 java.lang.Object getDefaultGeometry()
           
 org.opengis.feature.GeometryAttribute getDefaultGeometryProperty()
           
 org.opengis.feature.type.AttributeDescriptor getDescriptor()
           
 org.opengis.feature.simple.SimpleFeatureType getFeatureType()
           
 java.lang.String getID()
           
 org.opengis.filter.identity.FeatureId getIdentifier()
           
 org.opengis.feature.type.Name getName()
           
 java.util.Collection<org.opengis.feature.Property> getProperties()
           
 java.util.Collection<org.opengis.feature.Property> getProperties(org.opengis.feature.type.Name arg0)
           
 java.util.Collection<org.opengis.feature.Property> getProperties(java.lang.String arg0)
           
 org.opengis.feature.Property getProperty(org.opengis.feature.type.Name arg0)
           
 org.opengis.feature.Property getProperty(java.lang.String arg0)
           
 org.opengis.feature.simple.SimpleFeatureType getType()
           
 java.util.Map<java.lang.Object,java.lang.Object> getUserData()
           
 java.util.Collection<? extends org.opengis.feature.Property> getValue()
           
 int hashCode()
           
 boolean isNillable()
           
 void setAttribute(int position, java.lang.Object val)
           
 void setAttribute(org.opengis.feature.type.Name arg0, java.lang.Object arg1)
           
 void setAttribute(java.lang.String path, java.lang.Object attribute)
           
 void setAttributes(java.util.List<java.lang.Object> arg0)
           
 void setAttributes(java.lang.Object[] arg0)
           
 void setDefaultGeometry(com.vividsolutions.jts.geom.Geometry geometry)
           
 void setDefaultGeometry(java.lang.Object arg0)
           
 void setDefaultGeometryProperty(org.opengis.feature.GeometryAttribute arg0)
           
 void setValue(java.util.Collection<org.opengis.feature.Property> arg0)
           
 void setValue(java.lang.Object arg0)
           
 java.lang.String toString()
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

delegate

protected org.opengis.feature.simple.SimpleFeature delegate
Constructor Detail

DecoratingFeature

public DecoratingFeature(org.opengis.feature.simple.SimpleFeature delegate)
Method Detail

getAttribute

public java.lang.Object getAttribute(int index)
Specified by:
getAttribute in interface org.opengis.feature.simple.SimpleFeature

getAttribute

public java.lang.Object getAttribute(org.opengis.feature.type.Name arg0)
Specified by:
getAttribute in interface org.opengis.feature.simple.SimpleFeature

getAttribute

public java.lang.Object getAttribute(java.lang.String path)
Specified by:
getAttribute in interface org.opengis.feature.simple.SimpleFeature

getAttributeCount

public int getAttributeCount()
Specified by:
getAttributeCount in interface org.opengis.feature.simple.SimpleFeature

getAttributes

public java.util.List<java.lang.Object> getAttributes()
Specified by:
getAttributes in interface org.opengis.feature.simple.SimpleFeature

getBounds

public org.opengis.geometry.BoundingBox getBounds()
Specified by:
getBounds in interface org.opengis.feature.Feature

getDefaultGeometry

public java.lang.Object getDefaultGeometry()
Specified by:
getDefaultGeometry in interface org.opengis.feature.simple.SimpleFeature

getDefaultGeometryProperty

public org.opengis.feature.GeometryAttribute getDefaultGeometryProperty()
Specified by:
getDefaultGeometryProperty in interface org.opengis.feature.Feature

getDescriptor

public org.opengis.feature.type.AttributeDescriptor getDescriptor()
Specified by:
getDescriptor in interface org.opengis.feature.Attribute
Specified by:
getDescriptor in interface org.opengis.feature.Property

getFeatureType

public org.opengis.feature.simple.SimpleFeatureType getFeatureType()
Specified by:
getFeatureType in interface org.opengis.feature.simple.SimpleFeature

getIdentifier

public org.opengis.filter.identity.FeatureId getIdentifier()
Specified by:
getIdentifier in interface org.opengis.feature.Attribute
Specified by:
getIdentifier in interface org.opengis.feature.Feature

getID

public java.lang.String getID()
Specified by:
getID in interface org.opengis.feature.simple.SimpleFeature

getName

public org.opengis.feature.type.Name getName()
Specified by:
getName in interface org.opengis.feature.Property

getProperties

public java.util.Collection<org.opengis.feature.Property> getProperties()
Specified by:
getProperties in interface org.opengis.feature.ComplexAttribute

getProperties

public java.util.Collection<org.opengis.feature.Property> getProperties(org.opengis.feature.type.Name arg0)
Specified by:
getProperties in interface org.opengis.feature.ComplexAttribute

getProperties

public java.util.Collection<org.opengis.feature.Property> getProperties(java.lang.String arg0)
Specified by:
getProperties in interface org.opengis.feature.ComplexAttribute

getProperty

public org.opengis.feature.Property getProperty(org.opengis.feature.type.Name arg0)
Specified by:
getProperty in interface org.opengis.feature.ComplexAttribute

getProperty

public org.opengis.feature.Property getProperty(java.lang.String arg0)
Specified by:
getProperty in interface org.opengis.feature.ComplexAttribute

getType

public org.opengis.feature.simple.SimpleFeatureType getType()
Specified by:
getType in interface org.opengis.feature.Attribute
Specified by:
getType in interface org.opengis.feature.ComplexAttribute
Specified by:
getType in interface org.opengis.feature.Feature
Specified by:
getType in interface org.opengis.feature.Property
Specified by:
getType in interface org.opengis.feature.simple.SimpleFeature

getUserData

public java.util.Map<java.lang.Object,java.lang.Object> getUserData()
Specified by:
getUserData in interface org.opengis.feature.Property

getValue

public java.util.Collection<? extends org.opengis.feature.Property> getValue()
Specified by:
getValue in interface org.opengis.feature.ComplexAttribute
Specified by:
getValue in interface org.opengis.feature.Property

isNillable

public boolean isNillable()
Specified by:
isNillable in interface org.opengis.feature.Property

setAttribute

public void setAttribute(int position,
                         java.lang.Object val)
Specified by:
setAttribute in interface org.opengis.feature.simple.SimpleFeature

setAttribute

public void setAttribute(org.opengis.feature.type.Name arg0,
                         java.lang.Object arg1)
Specified by:
setAttribute in interface org.opengis.feature.simple.SimpleFeature

setAttribute

public void setAttribute(java.lang.String path,
                         java.lang.Object attribute)
Specified by:
setAttribute in interface org.opengis.feature.simple.SimpleFeature

setAttributes

public void setAttributes(java.util.List<java.lang.Object> arg0)
Specified by:
setAttributes in interface org.opengis.feature.simple.SimpleFeature

setAttributes

public void setAttributes(java.lang.Object[] arg0)
Specified by:
setAttributes in interface org.opengis.feature.simple.SimpleFeature

setDefaultGeometry

public void setDefaultGeometry(java.lang.Object arg0)
Specified by:
setDefaultGeometry in interface org.opengis.feature.simple.SimpleFeature

setDefaultGeometryProperty

public void setDefaultGeometryProperty(org.opengis.feature.GeometryAttribute arg0)
Specified by:
setDefaultGeometryProperty in interface org.opengis.feature.Feature

setDefaultGeometry

public void setDefaultGeometry(com.vividsolutions.jts.geom.Geometry geometry)
                        throws IllegalAttributeException
Throws:
IllegalAttributeException

setValue

public void setValue(java.util.Collection<org.opengis.feature.Property> arg0)
Specified by:
setValue in interface org.opengis.feature.ComplexAttribute

setValue

public void setValue(java.lang.Object arg0)
Specified by:
setValue in interface org.opengis.feature.Property

equals

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

hashCode

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

toString

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

validate

public void validate()
Specified by:
validate in interface org.opengis.feature.Attribute
Specified by:
validate in interface org.opengis.feature.ComplexAttribute


Copyright © 1996-2010 Geotools. All Rights Reserved.