|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Feature
Represents the basic data unit of a tabular structure, equivalent to a record in a data base table. In SIG domain, a Feature is a compound data structure that may contain a geographic component. The conventional term Feature comes from the term cartographic feature and both represent the same concept.
A Feature may contain more than one geometry attribute. In the case there is not any geometry data,
the getDefaultGeometry()
will return null
.
Features are not editable as such. To edit a Feature you have to obtain an
editable instance EditableFeature
using the method getEditable()
.
Modify that editable instance and then apply the changes to the Feature. This
mechanism is to avoid ambiguity and loosing track on the Feature internal state.
The Feature:
FeatureReference
to recognize our Feature from each other from the same data storeFeatureType
that describes the Feature characteristics (attributes,
data types, default geometry, validation rules).
Field Summary | |
---|---|
static int |
ALL
Mode that indicates the validation of all FeatureRules |
static int |
FINISH_EDITING
Mode that indicates the validation of the finish editing FeatureRules |
static int |
UPDATE
Mode that indicates the validation of the update FeatureRules |
Method Summary | |
---|---|
Object |
get(int index)
Returns the value of an attribute given its position. |
Object |
get(String name)
Returns the value of an attribute given its name. |
Object[] |
getArray(int index)
Returns the array value of an attribute given its position. |
Object[] |
getArray(String name)
Returns the array value of an attribute given its name. |
DynObject |
getAsDynObject()
|
boolean |
getBoolean(int index)
Returns the Boolean value of an attribute given its position. |
boolean |
getBoolean(String name)
Returns the Boolean value of an attribute given its name. |
byte |
getByte(int index)
Returns the byte value of an attribute given its position. |
byte |
getByte(String name)
Returns the byte value of an attribute given its name. |
Feature |
getCopy()
Creates and returns a copy of this |
Date |
getDate(int index)
Returns the Date value of an attribute given its position. |
Date |
getDate(String name)
Returns the Date value of an attribute given its name. |
org.gvsig.fmap.geom.primitive.Envelope |
getDefaultEnvelope()
Envelope (AKA extent or bounding box) of the default geometry attribute. |
org.gvsig.fmap.geom.Geometry |
getDefaultGeometry()
Returns the value of the default geometry attribute, which is a Geometry . |
org.cresques.cts.IProjection |
getDefaultSRS()
Returns the Spatial Reference System in which is expressed the default geometry attribute. |
double |
getDouble(int index)
Returns the double value of an attribute given its position. |
double |
getDouble(String name)
Returns the double value of an attribute given its name. |
EditableFeature |
getEditable()
Returns the editable instance of this Feature. |
Feature |
getFeature(int index)
Returns the Feature value of an attribute given its position. |
Feature |
getFeature(String name)
Returns the Feature value of an attribute given its name. |
float |
getFloat(int index)
Returns the float value of an attribute given its position. |
float |
getFloat(String name)
Returns the float value of an attribute given its name. |
List |
getGeometries()
Returns a list with the values of this Feature's geometry attributes. |
org.gvsig.fmap.geom.Geometry |
getGeometry(int index)
Returns the Geometry value of an attribute given its position. |
org.gvsig.fmap.geom.Geometry |
getGeometry(String name)
Returns the Geometry value of an attribute given its name. |
org.gvsig.timesupport.Instant |
getInstant(int index)
Returns the instant value of an attribute given its position. |
org.gvsig.timesupport.Instant |
getInstant(String name)
Returns the instant value of an attribute given its name. |
int |
getInt(int index)
Returns the int value of an attribute given its position. |
int |
getInt(String name)
Returns the int value of an attribute given its name. |
org.gvsig.timesupport.Interval |
getInterval(int index)
Returns the interval value of an attribute given its position. |
org.gvsig.timesupport.Interval |
getInterval(String name)
Returns the interval value of an attribute given its name. |
long |
getLong(int index)
Returns the long value of an attribute given its position. |
long |
getLong(String name)
Returns the long value of an attribute given its name. |
FeatureReference |
getReference()
Returns a unique identifier for this Feature in the associated store. |
List |
getSRSs()
Returns a list with the Spatial Reference Systems in which are expressed this Feature's geometry attributes. |
String |
getString(int index)
Returns the String value of an attribute given its position. |
String |
getString(String name)
Returns the String value of an attribute given its name. |
FeatureType |
getType()
Returns the FeatureType that describes the structure of this Feature. |
void |
validate(int mode)
Validates this Feature by applying the FeatureRules
corresponding to the given mode. |
Field Detail |
---|
static final int ALL
static final int UPDATE
static final int FINISH_EDITING
Method Detail |
---|
FeatureReference getReference()
FeatureType getType()
Feature getCopy()
void validate(int mode)
FeatureRules
corresponding to the given mode.
mode
- one of the constants {ALL, UPDATE, FINISH_EDITING}EditableFeature getEditable()
Object get(String name)
name
- a string containing the name of the attribute
Object get(int index)
index
- position of the attribute
int getInt(String name)
name
- a string containing the name of the attribute
int getInt(int index)
index
- position of the attribute
boolean getBoolean(String name)
name
- name of the attribute
boolean getBoolean(int index)
index
- position of the attribute
long getLong(String name)
name
- name of the attribute
long getLong(int index)
index
- position of the attribute
float getFloat(String name)
name
- name of the attribute
float getFloat(int index)
index
- position of the attribute
double getDouble(String name)
name
- name of the attribute
double getDouble(int index)
index
- position of the attribute
Date getDate(String name)
name
- name of the attribute
Date getDate(int index)
index
- position of the attribute
String getString(String name)
name
- name of the attribute
String getString(int index)
index
- position of the attribute
byte getByte(String name)
name
- name of the attribute
byte getByte(int index)
index
- position of the attribute
org.gvsig.fmap.geom.Geometry getGeometry(String name)
name
- name of the attribute
org.gvsig.fmap.geom.Geometry getGeometry(int index)
index
- position of the attribute
Object[] getArray(String name)
name
- name of the attribute
Object[] getArray(int index)
index
- position of the attribute
Feature getFeature(String name)
name
- name of the attribute
Feature getFeature(int index)
index
- position of the attribute
org.gvsig.fmap.geom.primitive.Envelope getDefaultEnvelope()
org.gvsig.fmap.geom.Geometry getDefaultGeometry()
Geometry
.
List getGeometries()
org.cresques.cts.IProjection getDefaultSRS()
List getSRSs()
org.gvsig.timesupport.Instant getInstant(int index)
index
- position of the attribute
org.gvsig.timesupport.Instant getInstant(String name)
name
- a string containing the name of the attribute
org.gvsig.timesupport.Interval getInterval(int index)
index
- position of the attribute
org.gvsig.timesupport.Interval getInterval(String name)
name
- a string containing the name of the attribute
DynObject getAsDynObject()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |