Package com.vividsolutions.jump.feature
Class BasicFeature
- java.lang.Object
-
- com.vividsolutions.jump.feature.AbstractBasicFeature
-
- com.vividsolutions.jump.feature.BasicFeature
-
- All Implemented Interfaces:
Feature,Serializable,Cloneable,Comparable
- Direct Known Subclasses:
FlexibleFeature,ReferencedImageFeature
public class BasicFeature extends AbstractBasicFeature implements Serializable
Default implementation of the Feature interface.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BasicFeature(FeatureSchema featureSchema)Constructs a BasicFeature with the given FeatureSchema specifying the attribute names and types.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetAttribute(int i)Returns the specified attribute.Object[]getAttributes()A low-level accessor that is not normally used.booleanisModified()voidsetAttribute(int attributeIndex, Object newAttribute)Sets the specified attribute.voidsetAttributes(Object[] attributes)A low-level accessor that is not normally used.voidsetModified(boolean modified)-
Methods inherited from class com.vividsolutions.jump.feature.AbstractBasicFeature
clone, clone, clone, clone, compare, compareTo, getAttribute, getDouble, getGeometry, getID, getInteger, getSchema, getString, getString, getUserData, removeAllUserData, removeUserData, setAttribute, setGeometry, setSchema, setUserData
-
-
-
-
Constructor Detail
-
BasicFeature
public BasicFeature(FeatureSchema featureSchema)
Constructs a BasicFeature with the given FeatureSchema specifying the attribute names and types.
-
-
Method Detail
-
setAttributes
public void setAttributes(Object[] attributes)
A low-level accessor that is not normally used. It is called by ViewSchemaPlugIn.- Specified by:
setAttributesin interfaceFeature- Parameters:
attributes- may have a different length than the current attributes.
-
setAttribute
public void setAttribute(int attributeIndex, Object newAttribute)Sets the specified attribute.- Specified by:
setAttributein interfaceFeature- Parameters:
attributeIndex- the array index at which to put the new attributenewAttribute- the new attribute
-
getAttribute
public Object getAttribute(int i)
Returns the specified attribute.- Specified by:
getAttributein interfaceFeature- Parameters:
i- the index of the attribute to get- Returns:
- the attribute
-
getAttributes
public Object[] getAttributes()
A low-level accessor that is not normally used. It is called by ViewSchemaPlugIn.- Specified by:
getAttributesin interfaceFeature
-
isModified
public boolean isModified()
- Returns:
- true if any attribute of this Feature (including Geometry) has been set more than once.
-
setModified
public void setModified(boolean modified)
- Parameters:
modified- - allows the modified flag to be set or reset
-
-