Package org.gvsig.fmap.dal.feature
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
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
CHECK_BASIC, CHECK_REQUIREDS, CHECK_RULES_AT_EDITING, CHECK_RULES_AT_FINISH, DATASTATUS_BROKEN, DATASTATUS_INCONSISTENT, DATASTATUS_OK -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSetValue(String name) booleancanSetValue(FeatureAttributeDescriptor attr, Predicate<FeatureAttributeDescriptor> filter) voidcopyFrom(javax.json.JsonObject source) voidcopyFrom(javax.json.JsonObject values, Predicate<FeatureAttributeDescriptor> filter) Copy the "JSon" values to the feature by name.voidCopies the values of all attributes from the source feature to this featurevoidcopyFrom(Feature values, Predicate<FeatureAttributeDescriptor> copy) voidcopyFrom(Feature source, Predicate<FeatureAttributeDescriptor> copy, org.gvsig.tools.util.Invocable onerror) Returns a non editable copy of the Feature.Returns the Feature from which this EditableFeature was createdbooleanvoidSets the value of an attribute given its indexvoidSets the value of an attribute given its namevoidSets the value of an attribute of type array, given its indexvoidSets the value of an attribute of type array, given its namevoidsetBoolean(int index, boolean value) Sets the value of an attribute of type boolean, given its indexvoidsetBoolean(String name, boolean value) Sets the value of an attribute of type boolean, given its namevoidsetByte(int index, byte value) Sets the value of an attribute of type byte, given its indexvoidSets the value of an attribute of type byte, given its namevoidSets the value of an attribute of type date, given its indexvoidSets the value of an attribute of type date, given its namevoidsetDecimal(int index, BigDecimal value) Sets the value of an attribute of type BigDecimal, given its indexvoidsetDecimal(String name, BigDecimal value) Sets the value of an attribute of type BigDecimal, given its namevoidsetDefaultGeometry(org.gvsig.fmap.geom.Geometry value) Sets de value of the default geometry attribute.voidsetDouble(int index, double value) Sets the value of an attribute of type double, given its indexvoidSets the value of an attribute of type double, given its namevoidsetFeature(int index, Feature value) Sets the value of an attribute of type feature, given its indexvoidsetFeature(String name, Feature value) Sets the value of an attribute of type feature, given its namevoidsetFloat(int index, float value) Sets the value of an attribute of type float, given its indexvoidSets the value of an attribute of type float, given its namevoidsetGeometry(int index, org.gvsig.fmap.geom.Geometry value) Sets the value of an attribute of type geometry, given its indexvoidsetGeometry(String name, org.gvsig.fmap.geom.Geometry value) Sets the value of an attribute of type geometry, given its namevoidsetInstant(int index, org.gvsig.timesupport.Instant value) Sets the value of an attribute of type instant, given its indexvoidsetInstant(String name, org.gvsig.timesupport.Instant value) Sets the value of an attribute of type instant, given its namevoidsetInt(int index, int value) Sets the value of an attribute of type integer, given its indexvoidSets the value of an attribute of type integer, given its namevoidsetInterval(int index, org.gvsig.timesupport.Interval value) Sets the value of an attribute of type interval, given its indexvoidsetInterval(String name, org.gvsig.timesupport.Interval value) Sets the value of an attribute of type interval, given its namevoidsetLong(int index, long value) Sets the value of an attribute of type long, given its indexvoidSets the value of an attribute of type long, given its namevoidSets the value of an attribute of type string, given its indexvoidSets the value of an attribute of type string, given its namevoidsetUpdatable(boolean updatable) Methods inherited from interface org.gvsig.fmap.dal.feature.Feature
createBuilderFilter, createFilter, format, format, get, get, getArray, getArray, getAsDynObject, getBoolean, getBoolean, getBooleanOrDefault, getBooleanOrDefault, getByte, getByte, getByteArray, getByteArray, getCopy, getDataStatus, getDate, getDate, getDateOrDefault, getDateOrDefault, getDecimal, getDecimal, getDecimalOrDefault, getDecimalOrDefault, getDefaultEnvelope, getDefaultGeometry, getDefaultSRS, getDouble, getDouble, getDoubleOrDefault, getDoubleOrDefault, getEditable, getEvaluatorData, getExtraValue, getExtraValue, getFeature, getFeature, getFloat, getFloat, getFloatOrDefault, getFloatOrDefault, getForeignFeature, getFromProfile, getFromProfile, getGeometries, getGeometry, getGeometry, getInt, getInt, getIntOrDefault, getIntOrDefault, getLabelOfValue, getLong, getLong, getLongOrDefault, getLongOrDefault, getOrDefault, getOrDefault, getOrDefault, getOrDefault, getReference, getSRSs, getStore, getString, getString, getStringOrDefault, getStringOrDefault, getTime, getTime, getTimestamp, getTimestamp, getType, hasExtraValue, hasValue, isBroken, isNull, isNull, setExtraValue, validateMethods inherited from interface org.gvsig.tools.util.GetKeys
getKeysMethods inherited from interface org.gvsig.tools.util.Size
sizeMethods inherited from interface org.gvsig.json.SupportToJson
toJson, toJson, toJsonBuilder, toJsonBuilder
-
Method Details
-
isUpdatable
boolean isUpdatable() -
setUpdatable
void setUpdatable(boolean updatable) -
set
Sets the value of an attribute given its name- Parameters:
name- attribute's namevalue- value to set
-
set
Sets the value of an attribute given its index- Parameters:
index- attribute's indexvalue- value to set
-
setInt
Sets the value of an attribute of type integer, given its name- Parameters:
name- attribute's namevalue- 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 indexvalue- value to set
-
setBoolean
Sets the value of an attribute of type boolean, given its name- Parameters:
name- attribute's namevalue- 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 indexvalue- value to set
-
setLong
Sets the value of an attribute of type long, given its name- Parameters:
name- attribute's namevalue- 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 indexvalue- value to set
-
setFloat
Sets the value of an attribute of type float, given its name- Parameters:
name- attribute's namevalue- 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 indexvalue- value to set
-
setDouble
Sets the value of an attribute of type double, given its name- Parameters:
name- attribute's namevalue- 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 indexvalue- value to set
-
setDecimal
Sets the value of an attribute of type BigDecimal, given its name- Parameters:
name- attribute's namevalue- value to set
-
setDecimal
Sets the value of an attribute of type BigDecimal, given its index- Parameters:
index- attribute's indexvalue- value to set
-
setDate
Sets the value of an attribute of type date, given its name- Parameters:
name- attribute's namevalue- value to set
-
setDate
Sets the value of an attribute of type date, given its index- Parameters:
index- attribute's indexvalue- value to set
-
setString
Sets the value of an attribute of type string, given its name- Parameters:
name- attribute's namevalue- value to set
-
setString
Sets the value of an attribute of type string, given its index- Parameters:
index- attribute's indexvalue- value to set
-
setByte
Sets the value of an attribute of type byte, given its name- Parameters:
name- attribute's namevalue- 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 indexvalue- value to set
-
setGeometry
Sets the value of an attribute of type geometry, given its name- Parameters:
name- attribute's namevalue- 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 indexvalue- value to set
-
setArray
Sets the value of an attribute of type array, given its name- Parameters:
name- attribute's namevalue- value to set
-
setArray
Sets the value of an attribute of type array, given its index- Parameters:
index- attribute's indexvalue- value to set
-
setFeature
Sets the value of an attribute of type feature, given its name- Parameters:
name- attribute's namevalue- value to set
-
setFeature
Sets the value of an attribute of type feature, given its index- Parameters:
index- attribute's indexvalue- 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
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
-
copyFrom
void copyFrom(Feature source, Predicate<FeatureAttributeDescriptor> copy, org.gvsig.tools.util.Invocable onerror) -
copyFrom
void copyFrom(javax.json.JsonObject source) -
copyFrom
Copy the "JSon" values to the feature by name. If filter return true, value for the attribute are copied.- Parameters:
values-filter-
-
setInstant
Sets the value of an attribute of type instant, given its name- Parameters:
name- attribute's namevalue- 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 indexvalue- value to set
-
setInterval
Sets the value of an attribute of type interval, given its name- Parameters:
name- attribute's namevalue- 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 indexvalue- value to set
-
canSetValue
-
canSetValue
-
getOriginal
Feature getOriginal()
-