org.geotools.data.gen
Class PreGeneralizedSimpleFeature
Object
PreGeneralizedSimpleFeature
- All Implemented Interfaces:
- Attribute, ComplexAttribute, Feature, Property, SimpleFeature
public class PreGeneralizedSimpleFeature
- extends Object
- implements SimpleFeature
- Author:
- Christian Mueller
Decorator Class for Simple Feature objects having pregeneralized geometries
This feature object is read only, modifying calls result in a
UnsupportedOperationException
The special thing is that a generalized geometry is returned.
- Module:
modules/plugin/feature-pregeneralized (gt-feature-pregeneralized.jar)
PreGeneralizedSimpleFeature
public PreGeneralizedSimpleFeature(SimpleFeatureType featureTyp,
int[] indexMapping,
SimpleFeature feature,
String geomPropertyName,
String backendGeomPropertyName)
getAttribute
public Object getAttribute(String attrName)
- Specified by:
getAttribute
in interface SimpleFeature
getAttribute
public Object getAttribute(Name name)
- Specified by:
getAttribute
in interface SimpleFeature
getAttribute
public Object getAttribute(int index)
throws IndexOutOfBoundsException
- Specified by:
getAttribute
in interface SimpleFeature
- Throws:
IndexOutOfBoundsException
getAttributeCount
public int getAttributeCount()
- Specified by:
getAttributeCount
in interface SimpleFeature
getAttributes
public List<Object> getAttributes()
- Specified by:
getAttributes
in interface SimpleFeature
getDefaultGeometry
public Object getDefaultGeometry()
- Specified by:
getDefaultGeometry
in interface SimpleFeature
getFeatureType
public SimpleFeatureType getFeatureType()
- Specified by:
getFeatureType
in interface SimpleFeature
getID
public String getID()
- Specified by:
getID
in interface SimpleFeature
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
setAttribute
public void setAttribute(String arg0,
Object arg1)
- Specified by:
setAttribute
in interface SimpleFeature
setAttribute
public void setAttribute(Name arg0,
Object arg1)
- Specified by:
setAttribute
in interface SimpleFeature
setAttribute
public void setAttribute(int arg0,
Object arg1)
throws IndexOutOfBoundsException
- Specified by:
setAttribute
in interface SimpleFeature
- Throws:
IndexOutOfBoundsException
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
getBounds
public BoundingBox getBounds()
- Specified by:
getBounds
in interface Feature
getDefaultGeometryProperty
public GeometryAttribute getDefaultGeometryProperty()
- Specified by:
getDefaultGeometryProperty
in interface Feature
getIdentifier
public FeatureId getIdentifier()
- Specified by:
getIdentifier
in interface Attribute
- Specified by:
getIdentifier
in interface Feature
setDefaultGeometryProperty
public void setDefaultGeometryProperty(GeometryAttribute arg0)
- Specified by:
setDefaultGeometryProperty
in interface Feature
getProperties
public Collection<Property> getProperties()
- Specified by:
getProperties
in interface ComplexAttribute
getProperties
public Collection<Property> getProperties(Name name)
- Specified by:
getProperties
in interface ComplexAttribute
getProperties
public Collection<Property> getProperties(String name)
- Specified by:
getProperties
in interface ComplexAttribute
getProperty
public Property getProperty(Name name)
- Specified by:
getProperty
in interface ComplexAttribute
getProperty
public Property getProperty(String name)
- Specified by:
getProperty
in interface ComplexAttribute
getValue
public Collection<? extends Property> getValue()
- Specified by:
getValue
in interface ComplexAttribute
- Specified by:
getValue
in interface Property
setValue
public void setValue(Collection<Property> arg0)
- Specified by:
setValue
in interface ComplexAttribute
validate
public void validate()
throws IllegalAttributeException
- Specified by:
validate
in interface Attribute
- Specified by:
validate
in interface ComplexAttribute
- Throws:
IllegalAttributeException
getDescriptor
public AttributeDescriptor getDescriptor()
- Specified by:
getDescriptor
in interface Attribute
- Specified by:
getDescriptor
in interface Property
getName
public Name getName()
- Specified by:
getName
in interface Property
getUserData
public Map<Object,Object> getUserData()
- Specified by:
getUserData
in interface Property
isNillable
public boolean isNillable()
- Specified by:
isNillable
in interface Property
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
Copyright © 1996-2010 Geotools. All Rights Reserved.