Interface EditableFeature

All Superinterfaces:
Feature, org.gvsig.tools.util.GetItemByKey<String,Object>, org.gvsig.tools.util.GetItemByKeyWithSize<String,Object>, org.gvsig.tools.util.GetItemByKeyWithSizeAndGetKeys<String,Object>, org.gvsig.tools.util.GetKeys<String>, org.gvsig.tools.util.Size, org.gvsig.json.SupportToJson

public interface EditableFeature extends Feature
This interface represents a Feature in editable state. To edit a Feature you have to obtain its instance of EditableFeature and then perform editing operations on it. Once you have completed the editing you can save the changes to the original Feature. This is the only way to edit a Feature.
  • Method Details

    • isUpdatable

      boolean isUpdatable()
    • setUpdatable

      void setUpdatable(boolean updatable)
    • set

      void set(String name, Object value)
      Sets the value of an attribute given its name
      Parameters:
      name - attribute's name
      value - value to set
    • set

      void set(int index, Object value)
      Sets the value of an attribute given its index
      Parameters:
      index - attribute's index
      value - value to set
    • setInt

      void setInt(String name, int value)
      Sets the value of an attribute of type integer, given its name
      Parameters:
      name - attribute's name
      value - value to set
    • setInt

      void setInt(int index, int value)
      Sets the value of an attribute of type integer, given its index
      Parameters:
      index - attribute's index
      value - value to set
    • setBoolean

      void setBoolean(String name, boolean value)
      Sets the value of an attribute of type boolean, given its name
      Parameters:
      name - attribute's name
      value - value to set
    • setBoolean

      void setBoolean(int index, boolean value)
      Sets the value of an attribute of type boolean, given its index
      Parameters:
      index - attribute's index
      value - value to set
    • setLong

      void setLong(String name, long value)
      Sets the value of an attribute of type long, given its name
      Parameters:
      name - attribute's name
      value - value to set
    • setLong

      void setLong(int index, long value)
      Sets the value of an attribute of type long, given its index
      Parameters:
      index - attribute's index
      value - value to set
    • setFloat

      void setFloat(String name, float value)
      Sets the value of an attribute of type float, given its name
      Parameters:
      name - attribute's name
      value - value to set
    • setFloat

      void setFloat(int index, float value)
      Sets the value of an attribute of type float, given its index
      Parameters:
      index - attribute's index
      value - value to set
    • setDouble

      void setDouble(String name, double value)
      Sets the value of an attribute of type double, given its name
      Parameters:
      name - attribute's name
      value - value to set
    • setDouble

      void setDouble(int index, double value)
      Sets the value of an attribute of type double, given its index
      Parameters:
      index - attribute's index
      value - value to set
    • setDecimal

      void setDecimal(String name, BigDecimal value)
      Sets the value of an attribute of type BigDecimal, given its name
      Parameters:
      name - attribute's name
      value - value to set
    • setDecimal

      void setDecimal(int index, BigDecimal value)
      Sets the value of an attribute of type BigDecimal, given its index
      Parameters:
      index - attribute's index
      value - value to set
    • setDate

      void setDate(String name, Date value)
      Sets the value of an attribute of type date, given its name
      Parameters:
      name - attribute's name
      value - value to set
    • setDate

      void setDate(int index, Date value)
      Sets the value of an attribute of type date, given its index
      Parameters:
      index - attribute's index
      value - value to set
    • setString

      void setString(String name, String value)
      Sets the value of an attribute of type string, given its name
      Parameters:
      name - attribute's name
      value - value to set
    • setString

      void setString(int index, String value)
      Sets the value of an attribute of type string, given its index
      Parameters:
      index - attribute's index
      value - value to set
    • setByte

      void setByte(String name, byte value)
      Sets the value of an attribute of type byte, given its name
      Parameters:
      name - attribute's name
      value - value to set
    • setByte

      void setByte(int index, byte value)
      Sets the value of an attribute of type byte, given its index
      Parameters:
      index - attribute's index
      value - value to set
    • setGeometry

      void setGeometry(String name, org.gvsig.fmap.geom.Geometry value)
      Sets the value of an attribute of type geometry, given its name
      Parameters:
      name - attribute's name
      value - value to set
    • setGeometry

      void setGeometry(int index, org.gvsig.fmap.geom.Geometry value)
      Sets the value of an attribute of type geometry, given its index
      Parameters:
      index - attribute's index
      value - value to set
    • setArray

      void setArray(String name, Object[] value)
      Sets the value of an attribute of type array, given its name
      Parameters:
      name - attribute's name
      value - value to set
    • setArray

      void setArray(int index, Object[] value)
      Sets the value of an attribute of type array, given its index
      Parameters:
      index - attribute's index
      value - value to set
    • setFeature

      void setFeature(String name, Feature value)
      Sets the value of an attribute of type feature, given its name
      Parameters:
      name - attribute's name
      value - value to set
    • setFeature

      void setFeature(int index, Feature value)
      Sets the value of an attribute of type feature, given its index
      Parameters:
      index - attribute's index
      value - value to set
    • getSource

      Feature getSource()
      Returns the Feature from which this EditableFeature was created
      Returns:
      Feature from which this EditableFeature was created
    • getNotEditableCopy

      Feature getNotEditableCopy()
      Returns a non editable copy of the Feature.
      Returns:
      non editable copy of the Feature.
    • setDefaultGeometry

      void setDefaultGeometry(org.gvsig.fmap.geom.Geometry value)
      Sets de value of the default geometry attribute.
      Parameters:
      value - geometry to set.
    • copyFrom

      void copyFrom(Feature source)
      Copies the values of all attributes from the source feature to this feature
      Parameters:
      source - source feature from which the values will be copied.
    • copyFrom

      void copyFrom(Feature values, Predicate<FeatureAttributeDescriptor> copy)
    • copyFrom

      void copyFrom(Feature source, Predicate<FeatureAttributeDescriptor> copy, org.gvsig.tools.util.Invocable onerror)
    • copyFrom

      void copyFrom(javax.json.JsonObject source)
    • copyFrom

      void copyFrom(javax.json.JsonObject values, Predicate<FeatureAttributeDescriptor> filter)
      Copy the "JSon" values to the feature by name. If filter return true, value for the attribute are copied.
      Parameters:
      values -
      filter -
    • setInstant

      void setInstant(String name, org.gvsig.timesupport.Instant value)
      Sets the value of an attribute of type instant, given its name
      Parameters:
      name - attribute's name
      value - value to set
    • setInstant

      void setInstant(int index, org.gvsig.timesupport.Instant value)
      Sets the value of an attribute of type instant, given its index
      Parameters:
      index - attribute's index
      value - value to set
    • setInterval

      void setInterval(String name, org.gvsig.timesupport.Interval value)
      Sets the value of an attribute of type interval, given its name
      Parameters:
      name - attribute's name
      value - value to set
    • setInterval

      void setInterval(int index, org.gvsig.timesupport.Interval value)
      Sets the value of an attribute of type interval, given its index
      Parameters:
      index - attribute's index
      value - value to set
    • canSetValue

      boolean canSetValue(String name)
    • canSetValue

    • getOriginal

      Feature getOriginal()