public class BasicFeature extends AbstractBasicFeature implements Serializable
| Constructor and Description |
|---|
BasicFeature(FeatureSchema featureSchema)
Constructs a BasicFeature with the given FeatureSchema specifying the
attribute names and types.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(int i)
Returns the specified attribute.
|
Object[] |
getAttributes()
A low-level accessor that is not normally used.
|
void |
setAttribute(int attributeIndex,
Object newAttribute)
Sets the specified attribute.
|
void |
setAttributes(Object[] attributes)
A low-level accessor that is not normally used.
|
clone, clone, clone, compare, compareTo, getAttribute, getDouble, getGeometry, getID, getInteger, getSchema, getString, getString, setAttribute, setGeometry, setSchemapublic BasicFeature(FeatureSchema featureSchema)
public void setAttributes(Object[] attributes)
setAttributes in interface Featureattributes - may have a different
length than the current attributes.public void setAttribute(int attributeIndex,
Object newAttribute)
setAttribute in interface FeatureattributeIndex - the array index at which to put the new attributenewAttribute - the new attributepublic Object getAttribute(int i)
getAttribute in interface Featurei - the index of the attribute to getpublic Object[] getAttributes()
getAttributes in interface FeatureCopyright © 2015. All rights reserved.