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
Default implementation of the Feature interface.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBasicFeature(FeatureSchema featureSchema) Constructs a BasicFeature with the given FeatureSchema specifying the attribute names and types. -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(int i) Returns the specified attribute.Object[]A low-level accessor that is not normally used.booleanvoidsetAttribute(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 AbstractBasicFeature
clone, clone, clone, clone, compare, compareTo, getAttribute, getDouble, getGeometry, getID, getInteger, getSchema, getString, getString, getUserData, removeAllUserData, removeUserData, setAttribute, setGeometry, setSchema, setUserData
-
Constructor Details
-
BasicFeature
Constructs a BasicFeature with the given FeatureSchema specifying the attribute names and types.
-
-
Method Details
-
setAttributes
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
Sets the specified attribute.- Specified by:
setAttributein interfaceFeature- Parameters:
attributeIndex- the array index at which to put the new attributenewAttribute- the new attribute
-
getAttribute
Returns the specified attribute.- Specified by:
getAttributein interfaceFeature- Parameters:
i- the index of the attribute to get- Returns:
- the attribute
-
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
-