Class BasicFeature

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