public interface EditableFeature extends Feature
CHECK_BASIC, CHECK_REQUIREDS, CHECK_RULES_AT_EDITING, CHECK_RULES_AT_FINISH
Modifier and Type | Method and Description |
---|---|
boolean |
canSetValue(FeatureAttributeDescriptor attr,
java.util.function.Predicate<FeatureAttributeDescriptor> filter) |
boolean |
canSetValue(java.lang.String name) |
void |
copyFrom(Feature source)
Copies the values of all attributes from the source feature to this feature
|
void |
copyFrom(Feature values,
java.util.function.Predicate<FeatureAttributeDescriptor> copy) |
void |
copyFrom(Feature source,
java.util.function.Predicate<FeatureAttributeDescriptor> copy,
Invocable onerror) |
void |
copyFrom(JsonObject source) |
void |
copyFrom(JsonObject values,
java.util.function.Predicate<FeatureAttributeDescriptor> filter)
Copy the "JSon" values to the feature by 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 |
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 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(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) |
createBuilderFilter, createFilter, format, format, get, get, getArray, getArray, getAsDynObject, getBoolean, getBoolean, getBooleanOrDefault, getBooleanOrDefault, getByte, getByte, getByteArray, getByteArray, getCopy, 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, validate
toJson, toJson, toJsonBuilder, toJsonBuilder
boolean isUpdatable()
void setUpdatable(boolean updatable)
void set(java.lang.String name, java.lang.Object value)
name
- attribute's namevalue
- value to setvoid set(int index, java.lang.Object value)
index
- attribute's indexvalue
- value to setvoid setInt(java.lang.String name, int value)
name
- attribute's namevalue
- value to setvoid setInt(int index, int value)
index
- attribute's indexvalue
- value to setvoid setBoolean(java.lang.String name, boolean value)
name
- attribute's namevalue
- value to setvoid setBoolean(int index, boolean value)
index
- attribute's indexvalue
- value to setvoid setLong(java.lang.String name, long value)
name
- attribute's namevalue
- value to setvoid setLong(int index, long value)
index
- attribute's indexvalue
- value to setvoid setFloat(java.lang.String name, float value)
name
- attribute's namevalue
- value to setvoid setFloat(int index, float value)
index
- attribute's indexvalue
- value to setvoid setDouble(java.lang.String name, double value)
name
- attribute's namevalue
- value to setvoid setDouble(int index, double value)
index
- attribute's indexvalue
- value to setvoid setDecimal(java.lang.String name, java.math.BigDecimal value)
name
- attribute's namevalue
- value to setvoid setDecimal(int index, java.math.BigDecimal value)
index
- attribute's indexvalue
- value to setvoid setDate(java.lang.String name, java.util.Date value)
name
- attribute's namevalue
- value to setvoid setDate(int index, java.util.Date value)
index
- attribute's indexvalue
- value to setvoid setString(java.lang.String name, java.lang.String value)
name
- attribute's namevalue
- value to setvoid setString(int index, java.lang.String value)
index
- attribute's indexvalue
- value to setvoid setByte(java.lang.String name, byte value)
name
- attribute's namevalue
- value to setvoid setByte(int index, byte value)
index
- attribute's indexvalue
- value to setvoid setGeometry(java.lang.String name, Geometry value)
name
- attribute's namevalue
- value to setvoid setGeometry(int index, Geometry value)
index
- attribute's indexvalue
- value to setvoid setArray(java.lang.String name, java.lang.Object[] value)
name
- attribute's namevalue
- value to setvoid setArray(int index, java.lang.Object[] value)
index
- attribute's indexvalue
- value to setvoid setFeature(java.lang.String name, Feature value)
name
- attribute's namevalue
- value to setvoid setFeature(int index, Feature value)
index
- attribute's indexvalue
- value to setFeature getSource()
Feature getNotEditableCopy()
void setDefaultGeometry(Geometry value)
value
- geometry to set.void copyFrom(Feature source)
source
- source feature from which the values will be copied.void copyFrom(Feature values, java.util.function.Predicate<FeatureAttributeDescriptor> copy)
void copyFrom(Feature source, java.util.function.Predicate<FeatureAttributeDescriptor> copy, Invocable onerror)
void copyFrom(JsonObject source)
void copyFrom(JsonObject values, java.util.function.Predicate<FeatureAttributeDescriptor> filter)
values
- filter
- void setInstant(java.lang.String name, Instant value)
name
- attribute's namevalue
- value to setvoid setInstant(int index, Instant value)
index
- attribute's indexvalue
- value to setvoid setInterval(java.lang.String name, Interval value)
name
- attribute's namevalue
- value to setvoid setInterval(int index, Interval value)
index
- attribute's indexvalue
- value to setboolean canSetValue(java.lang.String name)
boolean canSetValue(FeatureAttributeDescriptor attr, java.util.function.Predicate<FeatureAttributeDescriptor> filter)
Feature getOriginal()