org.geotools.data.gen
Class PreGeneralizedSimpleFeature
java.lang.Object
org.geotools.data.gen.PreGeneralizedSimpleFeature
- 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 PreGeneralizedSimpleFeature
- extends java.lang.Object
- implements org.opengis.feature.simple.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.
Constructor Summary |
PreGeneralizedSimpleFeature(org.opengis.feature.simple.SimpleFeatureType featureTyp,
int[] indexMapping,
org.opengis.feature.simple.SimpleFeature feature,
java.lang.String geomPropertyName,
java.lang.String backendGeomPropertyName)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
PreGeneralizedSimpleFeature
public PreGeneralizedSimpleFeature(org.opengis.feature.simple.SimpleFeatureType featureTyp,
int[] indexMapping,
org.opengis.feature.simple.SimpleFeature feature,
java.lang.String geomPropertyName,
java.lang.String backendGeomPropertyName)
getAttribute
public java.lang.Object getAttribute(java.lang.String attrName)
- Specified by:
getAttribute
in interface org.opengis.feature.simple.SimpleFeature
getAttribute
public java.lang.Object getAttribute(org.opengis.feature.type.Name name)
- Specified by:
getAttribute
in interface org.opengis.feature.simple.SimpleFeature
getAttribute
public java.lang.Object getAttribute(int index)
throws java.lang.IndexOutOfBoundsException
- Specified by:
getAttribute
in interface org.opengis.feature.simple.SimpleFeature
- Throws:
java.lang.IndexOutOfBoundsException
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
getDefaultGeometry
public java.lang.Object getDefaultGeometry()
- Specified by:
getDefaultGeometry
in interface org.opengis.feature.simple.SimpleFeature
getFeatureType
public org.opengis.feature.simple.SimpleFeatureType getFeatureType()
- Specified by:
getFeatureType
in interface org.opengis.feature.simple.SimpleFeature
getID
public java.lang.String getID()
- Specified by:
getID
in interface org.opengis.feature.simple.SimpleFeature
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
setAttribute
public void setAttribute(java.lang.String arg0,
java.lang.Object arg1)
- 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(int arg0,
java.lang.Object arg1)
throws java.lang.IndexOutOfBoundsException
- Specified by:
setAttribute
in interface org.opengis.feature.simple.SimpleFeature
- Throws:
java.lang.IndexOutOfBoundsException
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
getBounds
public org.opengis.geometry.BoundingBox getBounds()
- Specified by:
getBounds
in interface org.opengis.feature.Feature
getDefaultGeometryProperty
public org.opengis.feature.GeometryAttribute getDefaultGeometryProperty()
- Specified by:
getDefaultGeometryProperty
in interface org.opengis.feature.Feature
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
setDefaultGeometryProperty
public void setDefaultGeometryProperty(org.opengis.feature.GeometryAttribute arg0)
- Specified by:
setDefaultGeometryProperty
in interface org.opengis.feature.Feature
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 name)
- Specified by:
getProperties
in interface org.opengis.feature.ComplexAttribute
getProperties
public java.util.Collection<org.opengis.feature.Property> getProperties(java.lang.String name)
- Specified by:
getProperties
in interface org.opengis.feature.ComplexAttribute
getProperty
public org.opengis.feature.Property getProperty(org.opengis.feature.type.Name name)
- Specified by:
getProperty
in interface org.opengis.feature.ComplexAttribute
getProperty
public org.opengis.feature.Property getProperty(java.lang.String name)
- Specified by:
getProperty
in interface org.opengis.feature.ComplexAttribute
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
setValue
public void setValue(java.util.Collection<org.opengis.feature.Property> arg0)
- Specified by:
setValue
in interface org.opengis.feature.ComplexAttribute
validate
public void validate()
throws org.opengis.feature.IllegalAttributeException
- Specified by:
validate
in interface org.opengis.feature.Attribute
- Specified by:
validate
in interface org.opengis.feature.ComplexAttribute
- Throws:
org.opengis.feature.IllegalAttributeException
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
getName
public org.opengis.feature.type.Name getName()
- Specified by:
getName
in interface org.opengis.feature.Property
getUserData
public java.util.Map<java.lang.Object,java.lang.Object> getUserData()
- Specified by:
getUserData
in interface org.opengis.feature.Property
isNillable
public boolean isNillable()
- Specified by:
isNillable
in interface org.opengis.feature.Property
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
Copyright © 1996-2010 Geotools. All Rights Reserved.