public class DefaultEditableFeature extends DefaultFeature implements EditableFeature
data, FORMAT_MODE, FORMAT_MODE_GEOJSON, FORMAT_MODE_GVSIGDESKTOP, reference, TOJSON_MODE, TOJSON_MODE_COLLECTIONS, TOJSON_MODE_COMPUTEDS, TOJSON_MODE_DEEP, TOJSON_MODE_SHALLOW
CHECK_BASIC, CHECK_REQUIREDS, CHECK_RULES_AT_EDITING, CHECK_RULES_AT_FINISH
Modifier | Constructor and Description |
---|---|
protected |
DefaultEditableFeature(DefaultEditableFeature feature) |
protected |
DefaultEditableFeature(DefaultFeature feature) |
|
DefaultEditableFeature(DefaultFeatureStore store,
FeatureProvider data) |
Modifier and Type | Method and Description |
---|---|
void |
__setitem__(java.lang.String name,
java.lang.Object value) |
void |
copyFrom(Feature source,
java.util.function.Predicate<FeatureAttributeDescriptor> copy,
Invocable onerror) |
void |
copyFrom(JsonObject values)
Copies the values of all attributes from the source feature to this feature
|
void |
copyFrom(JsonObject values,
java.util.function.Predicate<FeatureAttributeDescriptor> filter) |
Feature |
getCopy()
Creates and returns a copy of this
|
EditableFeature |
getEditable()
Returns the editable instance of this Feature.
|
java.lang.Object |
getExtraValue(java.lang.String name) |
Feature |
getNotEditableCopy()
Returns a non editable copy of the Feature.
|
Feature |
getOriginal() |
Feature |
getSource()
Returns the Feature from which this EditableFeature was created
|
boolean |
isModified() |
boolean |
isUpdatable() |
void |
set(int index,
java.lang.Object value)
Sets the value of an attribute given its index
|
void |
set(java.lang.String name,
java.lang.Object value)
Sets the value of an attribute given its name
|
void |
setArray(int index,
java.lang.Object[] value)
Sets the value of an attribute of type array, given its index
|
void |
setArray(java.lang.String name,
java.lang.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(java.lang.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(java.lang.String name,
byte value)
Sets the value of an attribute of type byte, given its name
|
void |
setDate(int index,
java.util.Date value)
Sets the value of an attribute of type date, given its index
|
void |
setDate(java.lang.String name,
java.util.Date value)
Sets the value of an attribute of type date, given its name
|
void |
setDecimal(int index,
java.math.BigDecimal value)
Sets the value of an attribute of type BigDecimal, given its index
|
void |
setDecimal(java.lang.String name,
java.math.BigDecimal value)
Sets the value of an attribute of type BigDecimal, given its name
|
void |
setDefaultGeometry(Geometry geometry)
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(java.lang.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(java.lang.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(java.lang.String name,
float value)
Sets the value of an attribute of type float, given its name
|
void |
setGeometry(int index,
Geometry value)
Sets the value of an attribute of type geometry, given its index
|
void |
setGeometry(java.lang.String name,
Geometry value)
Sets the value of an attribute of type geometry, given its name
|
void |
setInstant(int index,
Instant value)
Sets the value of an attribute of type instant, given its index
|
void |
setInstant(java.lang.String name,
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(java.lang.String name,
int value)
Sets the value of an attribute of type integer, given its name
|
void |
setInterval(int index,
Interval value)
Sets the value of an attribute of type interval, given its index
|
void |
setInterval(java.lang.String name,
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(java.lang.String name,
long value)
Sets the value of an attribute of type long, given its name
|
void |
setString(int index,
java.lang.String value)
Sets the value of an attribute of type string, given its index
|
void |
setString(java.lang.String name,
java.lang.String value)
Sets the value of an attribute of type string, given its name
|
void |
setUpdatable(boolean updatable) |
void |
validate(int check) |
canSetValue, canSetValue, clear, clone, containsKey, createBuilderFilter, createFilter, format, format, get, get, getArray, getArray, getAsDynObject, getBoolean, getBoolean, getBooleanOrDefault, getBooleanOrDefault, getByte, getByte, getByteArray, getByteArray, getContextValue, getData, getDataNames, getDataTypesManager, getDataValue, getDataValues, getDate, getDate, getDateOrDefault, getDateOrDefault, getDecimal, getDecimal, getDecimalOrDefault, getDecimalOrDefault, getDefaultEnvelope, getDefaultGeometry, getDefaultSRS, getDouble, getDouble, getDoubleOrDefault, getDoubleOrDefault, getEvaluatorData, getExtraColumnValue, getExtraValue, getFeature, getFeature, getFloat, getFloat, getFloatOrDefault, getFloatOrDefault, getForeignFeature, getFromProfile, getFromProfile, getGeometries, getGeometry, getGeometry, getInt, getInt, getIntOrDefault, getIntOrDefault, getKeys, getLabelOfValue, getLong, getLong, getLongOrDefault, getLongOrDefault, getOrDefault, getOrDefault, getOrDefault, getOrDefault, getReference, getSRSs, getStore, getString, getString, getStringOrDefault, getStringOrDefault, getTime, getTime, getTimestamp, getTimestamp, getType, has_key, hasContextValue, hasDataValue, hasExtraValue, hasValue, initializeValues, initializeValues, isBroken, isEmpty, isInserted, isNull, isNull, iterator, iteritems, iterkeys, keys, set, setData, setExtraValue, setInserted, size, toJson, toJson, toJsonBuilder, toJsonBuilder, toJsonBuilderDefault, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canSetValue, canSetValue
createBuilderFilter, createFilter, format, format, get, get, getArray, getArray, getAsDynObject, getBoolean, getBoolean, getBooleanOrDefault, getBooleanOrDefault, getByte, getByte, getByteArray, getByteArray, getDate, getDate, getDateOrDefault, getDateOrDefault, getDecimal, getDecimal, getDecimalOrDefault, getDecimalOrDefault, getDefaultEnvelope, getDefaultGeometry, getDefaultSRS, getDouble, getDouble, getDoubleOrDefault, getDoubleOrDefault, getEvaluatorData, 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
toJson, toJson, toJsonBuilder, toJsonBuilder
cloneQuietly, cloneQuietly
protected DefaultEditableFeature(DefaultFeature feature)
protected DefaultEditableFeature(DefaultEditableFeature feature)
public DefaultEditableFeature(DefaultFeatureStore store, FeatureProvider data)
public Feature getSource()
EditableFeature
getSource
in interface EditableFeature
public boolean isUpdatable()
isUpdatable
in interface EditableFeature
public void setUpdatable(boolean updatable)
setUpdatable
in interface EditableFeature
public EditableFeature getEditable()
Feature
getEditable
in interface Feature
getEditable
in class DefaultFeature
public Feature getCopy()
Feature
getCopy
in interface Feature
getCopy
in class DefaultFeature
public Feature getNotEditableCopy()
EditableFeature
getNotEditableCopy
in interface EditableFeature
public void setDefaultGeometry(Geometry geometry)
EditableFeature
setDefaultGeometry
in interface EditableFeature
geometry
- geometry to set.public void __setitem__(java.lang.String name, java.lang.Object value)
public void set(java.lang.String name, java.lang.Object value)
EditableFeature
set
in interface EditableFeature
name
- attribute's namevalue
- value to setpublic void set(int index, java.lang.Object value)
EditableFeature
set
in interface EditableFeature
index
- attribute's indexvalue
- value to setpublic void setArray(java.lang.String name, java.lang.Object[] value)
EditableFeature
setArray
in interface EditableFeature
name
- attribute's namevalue
- value to setpublic void setArray(int index, java.lang.Object[] value)
EditableFeature
setArray
in interface EditableFeature
index
- attribute's indexvalue
- value to setpublic void setBoolean(java.lang.String name, boolean value)
EditableFeature
setBoolean
in interface EditableFeature
name
- attribute's namevalue
- value to setpublic void setBoolean(int index, boolean value)
EditableFeature
setBoolean
in interface EditableFeature
index
- attribute's indexvalue
- value to setpublic void setByte(java.lang.String name, byte value)
EditableFeature
setByte
in interface EditableFeature
name
- attribute's namevalue
- value to setpublic void setByte(int index, byte value)
EditableFeature
setByte
in interface EditableFeature
index
- attribute's indexvalue
- value to setpublic void setDate(java.lang.String name, java.util.Date value)
EditableFeature
setDate
in interface EditableFeature
name
- attribute's namevalue
- value to setpublic void setDate(int index, java.util.Date value)
EditableFeature
setDate
in interface EditableFeature
index
- attribute's indexvalue
- value to setpublic void setDouble(java.lang.String name, double value)
EditableFeature
setDouble
in interface EditableFeature
name
- attribute's namevalue
- value to setpublic void setDouble(int index, double value)
EditableFeature
setDouble
in interface EditableFeature
index
- attribute's indexvalue
- value to setpublic void setDecimal(java.lang.String name, java.math.BigDecimal value)
EditableFeature
setDecimal
in interface EditableFeature
name
- attribute's namevalue
- value to setpublic void setDecimal(int index, java.math.BigDecimal value)
EditableFeature
setDecimal
in interface EditableFeature
index
- attribute's indexvalue
- value to setpublic void setFeature(java.lang.String name, Feature value)
EditableFeature
setFeature
in interface EditableFeature
name
- attribute's namevalue
- value to setpublic void setFeature(int index, Feature value)
EditableFeature
setFeature
in interface EditableFeature
index
- attribute's indexvalue
- value to setpublic void setFloat(java.lang.String name, float value)
EditableFeature
setFloat
in interface EditableFeature
name
- attribute's namevalue
- value to setpublic void setFloat(int index, float value)
EditableFeature
setFloat
in interface EditableFeature
index
- attribute's indexvalue
- value to setpublic void setGeometry(java.lang.String name, Geometry value)
EditableFeature
setGeometry
in interface EditableFeature
name
- attribute's namevalue
- value to setpublic void setGeometry(int index, Geometry value)
EditableFeature
setGeometry
in interface EditableFeature
index
- attribute's indexvalue
- value to setpublic void setInt(java.lang.String name, int value)
EditableFeature
setInt
in interface EditableFeature
name
- attribute's namevalue
- value to setpublic void setInt(int index, int value)
EditableFeature
setInt
in interface EditableFeature
index
- attribute's indexvalue
- value to setpublic void setLong(java.lang.String name, long value)
EditableFeature
setLong
in interface EditableFeature
name
- attribute's namevalue
- value to setpublic void setLong(int index, long value)
EditableFeature
setLong
in interface EditableFeature
index
- attribute's indexvalue
- value to setpublic void setString(java.lang.String name, java.lang.String value)
EditableFeature
setString
in interface EditableFeature
name
- attribute's namevalue
- value to setpublic void setString(int index, java.lang.String value)
EditableFeature
setString
in interface EditableFeature
index
- attribute's indexvalue
- value to setpublic void copyFrom(JsonObject values)
EditableFeature
copyFrom
in interface EditableFeature
values
- source feature from which the values will be copied.public void copyFrom(JsonObject values, java.util.function.Predicate<FeatureAttributeDescriptor> filter)
copyFrom
in interface EditableFeature
public void copyFrom(Feature source, java.util.function.Predicate<FeatureAttributeDescriptor> copy, Invocable onerror)
copyFrom
in interface EditableFeature
public void setInstant(java.lang.String name, Instant value)
EditableFeature
setInstant
in interface EditableFeature
name
- attribute's namevalue
- value to setpublic void setInstant(int index, Instant value)
EditableFeature
setInstant
in interface EditableFeature
index
- attribute's indexvalue
- value to setpublic void setInterval(java.lang.String name, Interval value)
EditableFeature
setInterval
in interface EditableFeature
name
- attribute's namevalue
- value to setpublic void setInterval(int index, Interval value)
EditableFeature
setInterval
in interface EditableFeature
index
- attribute's indexvalue
- value to setpublic java.lang.Object getExtraValue(java.lang.String name)
getExtraValue
in interface Feature
getExtraValue
in class DefaultFeature
public void validate(int check) throws DataException
validate
in interface Feature
validate
in class DefaultFeature
DataException
public boolean isModified()
public Feature getOriginal()
getOriginal
in interface EditableFeature