public class BasicFeature extends AbstractBasicFeature implements java.io.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 |
---|---|
java.lang.Object |
getAttribute(int i)
Returns the specified attribute.
|
java.lang.Object[] |
getAttributes()
A low-level accessor that is not normally used.
|
boolean |
isModified() |
void |
setAttribute(int attributeIndex,
java.lang.Object newAttribute)
Sets the specified attribute.
|
void |
setAttributes(java.lang.Object[] attributes)
A low-level accessor that is not normally used.
|
void |
setModified(boolean modified) |
clone, clone, clone, clone, compare, compareTo, getAttribute, getDouble, getGeometry, getID, getInteger, getSchema, getString, getString, getUserData, removeAllUserData, removeUserData, setAttribute, setGeometry, setSchema, setUserData
public BasicFeature(FeatureSchema featureSchema)
public void setAttributes(java.lang.Object[] attributes)
setAttributes
in interface Feature
attributes
- may have a different
length than the current attributes.public void setAttribute(int attributeIndex, java.lang.Object newAttribute)
setAttribute
in interface Feature
attributeIndex
- the array index at which to put the new attributenewAttribute
- the new attributepublic java.lang.Object getAttribute(int i)
getAttribute
in interface Feature
i
- the index of the attribute to getpublic java.lang.Object[] getAttributes()
getAttributes
in interface Feature
public boolean isModified()
public void setModified(boolean modified)
modified
- - allows the modified flag to be set or reset