org.gvsig.fmap.dal.feature
Interface EditableFeature

All Superinterfaces:
Feature

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.


Field Summary
 
Fields inherited from interface org.gvsig.fmap.dal.feature.Feature
ALL, FINISH_EDITING, UPDATE
 
Method Summary
 void copyFrom(Feature source)
          Copies the values of all attributes from the source feature to this feature
 Feature getNotEditableCopy()
          Returns a non editable copy of the Feature.
 Feature getSource()
          Returns the Feature from which this EditableFeature was created
 void set(int index, Object value)
          Sets the value of an attribute given its index
 void set(String name, Object value)
          Sets the value of an attribute given its name
 void setArray(int index, Object[] value)
          Sets the value of an attribute of type array, given its index
 void setArray(String name, Object[] value)
          Sets the value of an attribute of type array, given its name
 void setBoolean(int index, boolean value)
          Sets the value of an attribute of type boolean, given its index
 void setBoolean(String name, boolean value)
          Sets the value of an attribute of type boolean, given its name
 void setByte(int index, byte value)
          Sets the value of an attribute of type byte, given its index
 void setByte(String name, byte value)
          Sets the value of an attribute of type byte, given its name
 void setDate(int index, Date value)
          Sets the value of an attribute of type date, given its index
 void setDate(String name, Date value)
          Sets the value of an attribute of type date, given its name
 void setDefaultGeometry(org.gvsig.fmap.geom.Geometry value)
          Sets de value of the default geometry attribute.
 void setDouble(int index, double value)
          Sets the value of an attribute of type double, given its index
 void setDouble(String name, double value)
          Sets the value of an attribute of type double, given its name
 void setFeature(int index, Feature value)
          Sets the value of an attribute of type feature, given its index
 void setFeature(String name, Feature value)
          Sets the value of an attribute of type feature, given its name
 void setFloat(int index, float value)
          Sets the value of an attribute of type float, given its index
 void setFloat(String name, float value)
          Sets the value of an attribute of type float, given its name
 void setGeometry(int index, org.gvsig.fmap.geom.Geometry value)
          Sets the value of an attribute of type geometry, given its index
 void setGeometry(String name, org.gvsig.fmap.geom.Geometry value)
          Sets the value of an attribute of type geometry, given its name
 void setInstant(int index, org.gvsig.timesupport.Instant value)
          Sets the value of an attribute of type instant, given its index
 void setInstant(String name, org.gvsig.timesupport.Instant value)
          Sets the value of an attribute of type instant, given its name
 void setInt(int index, int value)
          Sets the value of an attribute of type integer, given its index
 void setInt(String name, int value)
          Sets the value of an attribute of type integer, given its name
 void setInterval(int index, org.gvsig.timesupport.Interval value)
          Sets the value of an attribute of type interval, given its index
 void setInterval(String name, org.gvsig.timesupport.Interval value)
          Sets the value of an attribute of type interval, given its name
 void setLong(int index, long value)
          Sets the value of an attribute of type long, given its index
 void setLong(String name, long value)
          Sets the value of an attribute of type long, given its name
 void setString(int index, String value)
          Sets the value of an attribute of type string, given its index
 void setString(String name, String value)
          Sets the value of an attribute of type string, given its name
 
Methods inherited from interface org.gvsig.fmap.dal.feature.Feature
get, get, getArray, getArray, getAsDynObject, getBoolean, getBoolean, getByte, getByte, getCopy, getDate, getDate, getDefaultEnvelope, getDefaultGeometry, getDefaultSRS, getDouble, getDouble, getEditable, getFeature, getFeature, getFloat, getFloat, getGeometries, getGeometry, getGeometry, getInstant, getInstant, getInt, getInt, getInterval, getInterval, getLong, getLong, getReference, getSRSs, getString, getString, getType, validate
 

Method Detail

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

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.

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


Copyright © 2004-2012 gvSIG. All Rights Reserved.