org.geotools.feature
Class DecoratingFeature

Object
  extended by DecoratingFeature
All Implemented Interfaces:
Attribute, ComplexAttribute, Feature, Property, SimpleFeature

public class DecoratingFeature
extends Object
implements 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  SimpleFeature delegate
           
 
Constructor Summary
DecoratingFeature(SimpleFeature delegate)
           
 
Method Summary
 boolean equals(Object obj)
           
 Object getAttribute(int index)
           
 Object getAttribute(Name arg0)
           
 Object getAttribute(String path)
           
 int getAttributeCount()
           
 List<Object> getAttributes()
           
 BoundingBox getBounds()
           
 Object getDefaultGeometry()
           
 GeometryAttribute getDefaultGeometryProperty()
           
 AttributeDescriptor getDescriptor()
           
 SimpleFeatureType getFeatureType()
           
 String getID()
           
 FeatureId getIdentifier()
           
 Name getName()
           
 Collection<Property> getProperties()
           
 Collection<Property> getProperties(Name arg0)
           
 Collection<Property> getProperties(String arg0)
           
 Property getProperty(Name arg0)
           
 Property getProperty(String arg0)
           
 SimpleFeatureType getType()
           
 Map<Object,Object> getUserData()
           
 Collection<? extends Property> getValue()
           
 int hashCode()
           
 boolean isNillable()
           
 void setAttribute(int position, Object val)
           
 void setAttribute(Name arg0, Object arg1)
           
 void setAttribute(String path, Object attribute)
           
 void setAttributes(List<Object> arg0)
           
 void setAttributes(Object[] arg0)
           
 void setDefaultGeometry(Geometry geometry)
           
 void setDefaultGeometry(Object arg0)
           
 void setDefaultGeometryProperty(GeometryAttribute arg0)
           
 void setValue(Collection<Property> arg0)
           
 void setValue(Object arg0)
           
 String toString()
           
 void validate()
           
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

delegate

protected SimpleFeature delegate
Constructor Detail

DecoratingFeature

public DecoratingFeature(SimpleFeature delegate)
Method Detail

getAttribute

public Object getAttribute(int index)
Specified by:
getAttribute in interface SimpleFeature

getAttribute

public Object getAttribute(Name arg0)
Specified by:
getAttribute in interface SimpleFeature

getAttribute

public Object getAttribute(String path)
Specified by:
getAttribute in interface SimpleFeature

getAttributeCount

public int getAttributeCount()
Specified by:
getAttributeCount in interface SimpleFeature

getAttributes

public List<Object> getAttributes()
Specified by:
getAttributes in interface SimpleFeature

getBounds

public BoundingBox getBounds()
Specified by:
getBounds in interface Feature

getDefaultGeometry

public Object getDefaultGeometry()
Specified by:
getDefaultGeometry in interface SimpleFeature

getDefaultGeometryProperty

public GeometryAttribute getDefaultGeometryProperty()
Specified by:
getDefaultGeometryProperty in interface Feature

getDescriptor

public AttributeDescriptor getDescriptor()
Specified by:
getDescriptor in interface Attribute
Specified by:
getDescriptor in interface Property

getFeatureType

public SimpleFeatureType getFeatureType()
Specified by:
getFeatureType in interface SimpleFeature

getIdentifier

public FeatureId getIdentifier()
Specified by:
getIdentifier in interface Attribute
Specified by:
getIdentifier in interface Feature

getID

public String getID()
Specified by:
getID in interface SimpleFeature

getName

public Name getName()
Specified by:
getName in interface Property

getProperties

public Collection<Property> getProperties()
Specified by:
getProperties in interface ComplexAttribute

getProperties

public Collection<Property> getProperties(Name arg0)
Specified by:
getProperties in interface ComplexAttribute

getProperties

public Collection<Property> getProperties(String arg0)
Specified by:
getProperties in interface ComplexAttribute

getProperty

public Property getProperty(Name arg0)
Specified by:
getProperty in interface ComplexAttribute

getProperty

public Property getProperty(String arg0)
Specified by:
getProperty in interface ComplexAttribute

getType

public SimpleFeatureType getType()
Specified by:
getType in interface Attribute
Specified by:
getType in interface ComplexAttribute
Specified by:
getType in interface Feature
Specified by:
getType in interface Property
Specified by:
getType in interface SimpleFeature

getUserData

public Map<Object,Object> getUserData()
Specified by:
getUserData in interface Property

getValue

public Collection<? extends Property> getValue()
Specified by:
getValue in interface ComplexAttribute
Specified by:
getValue in interface Property

isNillable

public boolean isNillable()
Specified by:
isNillable in interface Property

setAttribute

public void setAttribute(int position,
                         Object val)
Specified by:
setAttribute in interface SimpleFeature

setAttribute

public void setAttribute(Name arg0,
                         Object arg1)
Specified by:
setAttribute in interface SimpleFeature

setAttribute

public void setAttribute(String path,
                         Object attribute)
Specified by:
setAttribute in interface SimpleFeature

setAttributes

public void setAttributes(List<Object> arg0)
Specified by:
setAttributes in interface SimpleFeature

setAttributes

public void setAttributes(Object[] arg0)
Specified by:
setAttributes in interface SimpleFeature

setDefaultGeometry

public void setDefaultGeometry(Object arg0)
Specified by:
setDefaultGeometry in interface SimpleFeature

setDefaultGeometryProperty

public void setDefaultGeometryProperty(GeometryAttribute arg0)
Specified by:
setDefaultGeometryProperty in interface Feature

setDefaultGeometry

public void setDefaultGeometry(Geometry geometry)
                        throws IllegalAttributeException
Throws:
IllegalAttributeException

setValue

public void setValue(Collection<Property> arg0)
Specified by:
setValue in interface ComplexAttribute

setValue

public void setValue(Object arg0)
Specified by:
setValue in interface Property

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

validate

public void validate()
Specified by:
validate in interface Attribute
Specified by:
validate in interface ComplexAttribute


Copyright © 1996-2009 Geotools. All Rights Reserved.