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