Class BasicFeature
- java.lang.Object
-
- org.locationtech.jts.jump.feature.AbstractBasicFeature
-
- org.locationtech.jts.jump.feature.BasicFeature
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable,Feature
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.voidsetAttribute(int attributeIndex, Object newAttribute)Sets the specified attribute.voidsetAttributes(Object[] attributes)A low-level accessor that is not normally used.-
Methods inherited from class org.locationtech.jts.jump.feature.AbstractBasicFeature
clone, clone, clone, compare, compareTo, getAttribute, getDouble, getGeometry, getID, getInteger, getSchema, getString, getString, setAttribute, setGeometry, setSchema
-
-
-
-
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
-
-