public class DefaultEditableFeature extends DefaultFeature implements EditableFeature
data, reference
ALL, FINISH_EDITING, UPDATE
Modifier | Constructor and Description |
---|---|
protected |
DefaultEditableFeature(DefaultEditableFeature feature) |
protected |
DefaultEditableFeature(DefaultFeature feature) |
|
DefaultEditableFeature(DefaultFeatureStore store,
FeatureProvider data) |
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(Feature source)
Copies the values of all attributes from the source feature to this feature
|
Feature |
getCopy()
Creates and returns a copy of this
|
EditableFeature |
getEditable()
Returns the editable instance of 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(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(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,
Geometry value)
Sets the value of an attribute of type geometry, given its index
|
void |
setGeometry(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(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(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(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(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
|
clear, clone, get, get, getArray, getArray, getAsDynObject, getBoolean, getBoolean, getByte, getByte, getContextValue, getData, getDataNames, getDataTypesManager, getDataValue, getDataValues, getDate, getDate, getDefaultEnvelope, getDefaultGeometry, getDefaultSRS, getDouble, getDouble, getEvaluatorData, getFeature, getFeature, getFloat, getFloat, getGeometries, getGeometry, getGeometry, getInstant, getInstant, getInt, getInt, getInterval, getInterval, getLong, getLong, getReference, getSRSs, getStore, getString, getString, getType, hasContextValue, hasDataValue, initializeValues, initializeValues, isInserted, setData, setInserted, toString, validate
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
get, get, getArray, getArray, getAsDynObject, getBoolean, getBoolean, getByte, getByte, getDate, getDate, getDefaultEnvelope, getDefaultGeometry, getDefaultSRS, getDouble, getDouble, getEvaluatorData, getFeature, getFeature, getFloat, getFloat, getGeometries, getGeometry, getGeometry, getInstant, getInstant, getInt, getInt, getInterval, getInterval, getLong, getLong, getReference, getSRSs, getStore, getString, getString, getType, validate
protected DefaultEditableFeature(DefaultFeature feature)
protected DefaultEditableFeature(DefaultEditableFeature feature)
public DefaultEditableFeature(DefaultFeatureStore store, FeatureProvider data)
public Feature getSource()
EditableFeature
getSource
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 set(String name, Object value)
EditableFeature
set
in interface EditableFeature
name
- attribute's namevalue
- value to setpublic void set(int index, Object value)
EditableFeature
set
in interface EditableFeature
index
- attribute's indexvalue
- value to setpublic void setArray(String name, Object[] value)
EditableFeature
setArray
in interface EditableFeature
name
- attribute's namevalue
- value to setpublic void setArray(int index, Object[] value)
EditableFeature
setArray
in interface EditableFeature
index
- attribute's indexvalue
- value to setpublic void setBoolean(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(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(String name, Date value)
EditableFeature
setDate
in interface EditableFeature
name
- attribute's namevalue
- value to setpublic void setDate(int index, Date value)
EditableFeature
setDate
in interface EditableFeature
index
- attribute's indexvalue
- value to setpublic void setDouble(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 setFeature(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(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(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(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(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(String name, String value)
EditableFeature
setString
in interface EditableFeature
name
- attribute's namevalue
- value to setpublic void setString(int index, String value)
EditableFeature
setString
in interface EditableFeature
index
- attribute's indexvalue
- value to setpublic void copyFrom(Feature source)
EditableFeature
copyFrom
in interface EditableFeature
source
- source feature from which the values will be copied.public void setInstant(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(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 set