|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.feature.simple.SimpleFeatureImpl
public class SimpleFeatureImpl
An implementation of SimpleFeature
geared towards speed and backed by an Object[].
Field Summary | |
---|---|
protected java.util.Map<java.lang.Object,java.lang.Object>[] |
attributeUserData
The set of user data attached to each attribute (lazily created) |
protected org.opengis.feature.simple.SimpleFeatureType |
featureType
|
protected org.opengis.filter.identity.FeatureId |
id
|
protected java.util.Map<java.lang.String,java.lang.Integer> |
index
The attribute name -> position index |
protected java.util.Map<java.lang.Object,java.lang.Object> |
userData
The set of user data attached to the feature (lazily created) |
protected boolean |
validating
Whether this feature is self validating or not |
protected java.lang.Object[] |
values
The actual values held by this feature |
Constructor Summary | |
---|---|
SimpleFeatureImpl(java.util.List<java.lang.Object> values,
org.opengis.feature.simple.SimpleFeatureType featureType,
org.opengis.filter.identity.FeatureId id)
Builds a new feature based on the provided values and feature type |
|
SimpleFeatureImpl(java.lang.Object[] values,
org.opengis.feature.simple.SimpleFeatureType featureType,
org.opengis.filter.identity.FeatureId id,
boolean validating)
Fast construction of a new feature. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
override of equals. |
java.lang.Object |
getAttribute(int index)
|
java.lang.Object |
getAttribute(org.opengis.feature.type.Name name)
|
java.lang.Object |
getAttribute(java.lang.String name)
|
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()
|
int |
getNumberOfAttributes()
|
java.util.Collection<org.opengis.feature.Property> |
getProperties()
|
java.util.Collection<org.opengis.feature.Property> |
getProperties(org.opengis.feature.type.Name name)
|
java.util.Collection<org.opengis.feature.Property> |
getProperties(java.lang.String name)
|
org.opengis.feature.Property |
getProperty(org.opengis.feature.type.Name name)
|
org.opengis.feature.Property |
getProperty(java.lang.String name)
|
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()
returns a unique code for this feature |
boolean |
isNillable()
|
void |
setAttribute(int index,
java.lang.Object value)
|
void |
setAttribute(org.opengis.feature.type.Name name,
java.lang.Object value)
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
|
void |
setAttributes(java.util.List<java.lang.Object> values)
|
void |
setAttributes(java.lang.Object[] values)
|
void |
setDefaultGeometry(java.lang.Object geometry)
|
void |
setDefaultGeometryProperty(org.opengis.feature.GeometryAttribute geometryAttribute)
|
void |
setValue(java.util.Collection<org.opengis.feature.Property> values)
|
void |
setValue(java.lang.Object newValue)
|
java.lang.String |
toString()
|
void |
validate()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected org.opengis.filter.identity.FeatureId id
protected org.opengis.feature.simple.SimpleFeatureType featureType
protected java.lang.Object[] values
protected java.util.Map<java.lang.String,java.lang.Integer> index
protected java.util.Map<java.lang.Object,java.lang.Object> userData
protected java.util.Map<java.lang.Object,java.lang.Object>[] attributeUserData
protected boolean validating
Constructor Detail |
---|
public SimpleFeatureImpl(java.util.List<java.lang.Object> values, org.opengis.feature.simple.SimpleFeatureType featureType, org.opengis.filter.identity.FeatureId id)
values
- featureType
- id
- public SimpleFeatureImpl(java.lang.Object[] values, org.opengis.feature.simple.SimpleFeatureType featureType, org.opengis.filter.identity.FeatureId id, boolean validating)
values
- featureType
- id
- validating
- Method Detail |
---|
public org.opengis.filter.identity.FeatureId getIdentifier()
getIdentifier
in interface org.opengis.feature.Attribute
getIdentifier
in interface org.opengis.feature.Feature
public java.lang.String getID()
getID
in interface org.opengis.feature.simple.SimpleFeature
public int getNumberOfAttributes()
public java.lang.Object getAttribute(int index) throws java.lang.IndexOutOfBoundsException
getAttribute
in interface org.opengis.feature.simple.SimpleFeature
java.lang.IndexOutOfBoundsException
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface org.opengis.feature.simple.SimpleFeature
public java.lang.Object getAttribute(org.opengis.feature.type.Name name)
getAttribute
in interface org.opengis.feature.simple.SimpleFeature
public int getAttributeCount()
getAttributeCount
in interface org.opengis.feature.simple.SimpleFeature
public java.util.List<java.lang.Object> getAttributes()
getAttributes
in interface org.opengis.feature.simple.SimpleFeature
public java.lang.Object getDefaultGeometry()
getDefaultGeometry
in interface org.opengis.feature.simple.SimpleFeature
public org.opengis.feature.simple.SimpleFeatureType getFeatureType()
getFeatureType
in interface org.opengis.feature.simple.SimpleFeature
public org.opengis.feature.simple.SimpleFeatureType getType()
getType
in interface org.opengis.feature.Attribute
getType
in interface org.opengis.feature.ComplexAttribute
getType
in interface org.opengis.feature.Feature
getType
in interface org.opengis.feature.Property
getType
in interface org.opengis.feature.simple.SimpleFeature
public void setAttribute(int index, java.lang.Object value) throws java.lang.IndexOutOfBoundsException
setAttribute
in interface org.opengis.feature.simple.SimpleFeature
java.lang.IndexOutOfBoundsException
public void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface org.opengis.feature.simple.SimpleFeature
public void setAttribute(org.opengis.feature.type.Name name, java.lang.Object value)
setAttribute
in interface org.opengis.feature.simple.SimpleFeature
public void setAttributes(java.util.List<java.lang.Object> values)
setAttributes
in interface org.opengis.feature.simple.SimpleFeature
public void setAttributes(java.lang.Object[] values)
setAttributes
in interface org.opengis.feature.simple.SimpleFeature
public void setDefaultGeometry(java.lang.Object geometry)
setDefaultGeometry
in interface org.opengis.feature.simple.SimpleFeature
public org.opengis.geometry.BoundingBox getBounds()
getBounds
in interface org.opengis.feature.Feature
public org.opengis.feature.GeometryAttribute getDefaultGeometryProperty()
getDefaultGeometryProperty
in interface org.opengis.feature.Feature
public void setDefaultGeometryProperty(org.opengis.feature.GeometryAttribute geometryAttribute)
setDefaultGeometryProperty
in interface org.opengis.feature.Feature
public java.util.Collection<org.opengis.feature.Property> getProperties()
getProperties
in interface org.opengis.feature.ComplexAttribute
public java.util.Collection<org.opengis.feature.Property> getProperties(org.opengis.feature.type.Name name)
getProperties
in interface org.opengis.feature.ComplexAttribute
public java.util.Collection<org.opengis.feature.Property> getProperties(java.lang.String name)
getProperties
in interface org.opengis.feature.ComplexAttribute
public org.opengis.feature.Property getProperty(org.opengis.feature.type.Name name)
getProperty
in interface org.opengis.feature.ComplexAttribute
public org.opengis.feature.Property getProperty(java.lang.String name)
getProperty
in interface org.opengis.feature.ComplexAttribute
public java.util.Collection<? extends org.opengis.feature.Property> getValue()
getValue
in interface org.opengis.feature.ComplexAttribute
getValue
in interface org.opengis.feature.Property
public void setValue(java.util.Collection<org.opengis.feature.Property> values)
setValue
in interface org.opengis.feature.ComplexAttribute
public void setValue(java.lang.Object newValue)
setValue
in interface org.opengis.feature.Property
public org.opengis.feature.type.AttributeDescriptor getDescriptor()
getDescriptor
in interface org.opengis.feature.Attribute
getDescriptor
in interface org.opengis.feature.Property
public org.opengis.feature.type.Name getName()
getName
in interface org.opengis.feature.Property
public boolean isNillable()
isNillable
in interface org.opengis.feature.Property
public java.util.Map<java.lang.Object,java.lang.Object> getUserData()
getUserData
in interface org.opengis.feature.Property
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the Object to test for equality.
true
if the object is equal, false
otherwise.public void validate()
validate
in interface org.opengis.feature.Attribute
validate
in interface org.opengis.feature.ComplexAttribute
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |