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:
  • Constructor Details

    • BasicFeature

      public BasicFeature(FeatureSchema featureSchema)
      Constructs a BasicFeature with the given FeatureSchema specifying the attribute names and types.
  • Method Details

    • setAttributes

      public void setAttributes(Object[] attributes)
      A low-level accessor that is not normally used. It is called by ViewSchemaPlugIn.
      Specified by:
      setAttributes in interface Feature
      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:
      setAttribute in interface Feature
      Parameters:
      attributeIndex - the array index at which to put the new attribute
      newAttribute - the new attribute
    • getAttribute

      public Object getAttribute(int i)
      Returns the specified attribute.
      Specified by:
      getAttribute in interface Feature
      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:
      getAttributes in interface Feature
    • 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