public class DefaultFeature extends Object implements Feature, EvaluatorData, Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected FeatureProvider |
data |
protected FeatureReference |
reference |
ALL, FINISH_EDITING, UPDATE| Constructor and Description |
|---|
DefaultFeature(FeatureStore store) |
DefaultFeature(FeatureStore store,
FeatureProvider data) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
Object |
clone()
Creates a copy of the object.
|
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.
|
Object |
getContextValue(String name) |
Feature |
getCopy()
Creates and returns a copy of this
|
FeatureProvider |
getData() |
Iterator |
getDataNames() |
protected DataTypesManager |
getDataTypesManager() |
Object |
getDataValue(String name) |
Iterator |
getDataValues() |
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.
|
Envelope |
getDefaultEnvelope()
Envelope (AKA extent or bounding box) of the default
geometry attribute.
|
Geometry |
getDefaultGeometry()
Returns the value of the default geometry attribute,
which is a
Geometry. |
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.
|
EvaluatorData |
getEvaluatorData()
This lets Feature be used eaily with
Evaluator |
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.
|
Geometry |
getGeometry(int index)
Returns the Geometry value of an attribute given its position.
|
Geometry |
getGeometry(String name)
Returns the Geometry value of an attribute given its name.
|
Instant |
getInstant(int index)
Returns the instant value of an attribute given its position.
|
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.
|
Interval |
getInterval(int index)
Returns the interval value of an attribute given its position.
|
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.
|
FeatureStore |
getStore()
Return the store associated to this feature.
|
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.
|
boolean |
hasContextValue(String name) |
boolean |
hasDataValue(String name) |
void |
initializeValues() |
void |
initializeValues(Feature feature) |
boolean |
isInserted() |
void |
setData(FeatureProvider data) |
void |
setInserted(boolean inserted) |
String |
toString() |
void |
validate(int mode)
Validates this Feature by applying the
FeatureRules
corresponding to the given mode. |
protected FeatureProvider data
protected FeatureReference reference
public DefaultFeature(FeatureStore store)
public DefaultFeature(FeatureStore store, FeatureProvider data)
public void setData(FeatureProvider data)
public FeatureProvider getData()
protected DataTypesManager getDataTypesManager()
public void initializeValues()
public void clear()
public void initializeValues(Feature feature)
public FeatureStore getStore()
Featurepublic FeatureType getType()
Featurepublic EditableFeature getEditable()
FeaturegetEditable in interface Featurepublic Feature getCopy()
Featurepublic Object clone() throws CloneNotSupportedException
Cloneableclone in class ObjectCloneNotSupportedException - if the instance of the object cannot
be cloned. As this is extending Cloneable so
its sure it implements it, so this exception may be used for problems
on specific object instances.Object#clone()}.public FeatureReference getReference()
FeaturegetReference in interface Featurepublic void validate(int mode)
throws DataException
FeatureFeatureRules
corresponding to the given mode.validate in interface Featuremode - one of the constants {ALL, UPDATE, FINISH_EDITING}DataException - on validation errorspublic List getSRSs()
Featurepublic Envelope getDefaultEnvelope()
FeaturegetDefaultEnvelope in interface Featurepublic Geometry getDefaultGeometry()
FeatureGeometry.getDefaultGeometry in interface Featurepublic IProjection getDefaultSRS()
FeaturegetDefaultSRS in interface Featurepublic List getGeometries()
FeaturegetGeometries in interface Featurepublic Object get(String name)
Featurepublic Object get(int index)
Featurepublic Object[] getArray(String name)
Featurepublic Object[] getArray(int index)
Featurepublic boolean getBoolean(String name)
FeaturegetBoolean in interface Featurename - name of the attributepublic boolean getBoolean(int index)
FeaturegetBoolean in interface Featureindex - position of the attributepublic byte getByte(String name)
Featurepublic byte getByte(int index)
Featurepublic Date getDate(String name)
Featurepublic Date getDate(int index)
Featurepublic double getDouble(String name)
Featurepublic double getDouble(int index)
Featurepublic Feature getFeature(String name)
FeaturegetFeature in interface Featurename - name of the attributepublic Feature getFeature(int index)
FeaturegetFeature in interface Featureindex - position of the attributepublic float getFloat(String name)
Featurepublic float getFloat(int index)
Featurepublic Geometry getGeometry(String name)
FeaturegetGeometry in interface Featurename - name of the attributepublic Geometry getGeometry(int index)
FeaturegetGeometry in interface Featureindex - position of the attributepublic int getInt(String name)
Featurepublic int getInt(int index)
Featurepublic long getLong(String name)
Featurepublic long getLong(int index)
Featurepublic String getString(String name)
Featurepublic String getString(int index)
Featurepublic Object getContextValue(String name)
getContextValue in interface EvaluatorDatapublic Iterator getDataNames()
getDataNames in interface EvaluatorDatapublic Object getDataValue(String name)
getDataValue in interface EvaluatorDatapublic Iterator getDataValues()
getDataValues in interface EvaluatorDatapublic boolean hasContextValue(String name)
hasContextValue in interface EvaluatorDatapublic boolean hasDataValue(String name)
hasDataValue in interface EvaluatorDatapublic Instant getInstant(int index)
FeaturegetInstant in interface Featureindex - position of the attributepublic Instant getInstant(String name)
FeaturegetInstant in interface Featurename - a string containing the name of the attributepublic Interval getInterval(int index)
FeaturegetInterval in interface Featureindex - position of the attributepublic Interval getInterval(String name)
FeaturegetInterval in interface Featurename - a string containing the name of the attributepublic DynObject getAsDynObject()
getAsDynObject in interface Featurepublic boolean isInserted()
public void setInserted(boolean inserted)
inserted - the inserted to setpublic EvaluatorData getEvaluatorData()
FeatureEvaluatorgetEvaluatorData in interface FeatureEvaluatorData which returns the data
of this feature