public interface FeatureAttributeDescriptor extends DynField
ANY, CHOICE, RANGE, RELATION_TYPE_AGGREGATE, RELATION_TYPE_COLLABORATION, RELATION_TYPE_COMPOSITION, RELATION_TYPE_IDENTITY, RELATION_TYPE_NONE
Modifier and Type | Method and Description |
---|---|
boolean |
allowIndexDuplicateds() |
boolean |
allowNull()
Indicates whether this attribute accepts null values.
|
Object |
getAdditionalInfo(String infoName)
Returns additional information of the attribute
|
FeatureAttributeDescriptor |
getCopy()
Returns a clone of this attribute descriptor
|
String |
getDataTypeName()
Returns the name of this attribute's data type.
|
DateFormat |
getDateFormat()
If this attribute is of type Date, then this method returns
the date format set by the data store.
|
Evaluator |
getEvaluator()
Returns an evaluator that will be used to calculate
the value of this attribute
|
FeatureAttributeEmulator |
getFeatureAttributeEmulator()
Gets the attribute emulator associatted
FeatureAttributeEmulator to this attribute. |
FeatureAttributeGetter |
getFeatureAttributeGetter()
Deprecated.
use getFeatureAttributeGetterAndSetter
|
int |
getGeometrySubType()
Deprecated.
use
getGeomType() instead. To be removed in gvSIG
2.1. |
int |
getGeometryType()
Deprecated.
use
getGeomType() instead. To be removed in gvSIG
2.1. |
GeometryType |
getGeomType()
Returns the
GeometryType of the attribute if it is a geometry. |
int |
getIndex()
Returns this attribute relative position within the
Feature . |
int |
getMaximumOccurrences()
Returns the maximum number of occurrences of this attribute on a given
feature.
|
int |
getMinimumOccurrences()
Returns the minimum number of occurrences of this attribute on a given
feature.
|
Class |
getObjectClass()
For attributes of type
DataTypes.OBJECT ,
this returns the Java Class object that class or interface that
all values of this attribute can be cast to. |
int |
getPrecision()
For attributes of type
DataTypes.DOUBLE and DataTypes.FLOAT
, this returns the maximum number of places after the decimal point. |
int |
getSize()
Returns a number that indicates the size of this attribute.
|
IProjection |
getSRS()
If this attribute is a
Geometry , this method returns its
Spatial Reference System. |
boolean |
isAutomatic()
Returns if value is created automatically by the source
|
boolean |
isComputed()
Return true if the attribute has an evaluator o an emulator.
|
boolean |
isIndexAscending() |
boolean |
isIndexed()
Return true if the attribute has and index in the table.
|
boolean |
isPrimaryKey()
Returns
true if this attribute forms all or part of the unique identifying
value for the feature it is contained by. |
boolean |
isTime()
Gets if the attribute is a temporal attribute.
|
void |
setFeatureAttributeGetter(FeatureAttributeGetter featureAttributeGetter)
Deprecated.
use setFeatureAttributeGetterAndSetter
|
coerce, getAvailableValues, getClassOfItems, getClassOfValue, getDataType, getDefaultValue, getDescription, getElementsType, getGroup, getMaxValue, getMinValue, getName, getOder, getSubtype, getTheTypeOfAvailableValues, getType, isContainer, isHidden, isMandatory, isPersistent, isReadOnly, setAvailableValues, setAvailableValues, setClassOfItems, setClassOfValue, setDefaultDynValue, setDefaultFieldValue, setDescription, setElementsType, setElementsType, setGroup, setHidden, setMandatory, setMaxValue, setMinValue, setOrder, setPersistent, setReadOnly, setSubtype, setTheTypeOfAvailableValues, setType, setType, validate
FeatureAttributeDescriptor getCopy()
String getDataTypeName()
int getSize()
DataTypes
for how to interpret this value. As an example, when the data type is
DataTypes.STRING
, this value indicates the maximum length of the string.int
indicating the size of the attribute.int getPrecision()
DataTypes.DOUBLE
and DataTypes.FLOAT
, this returns the maximum number of places after the decimal point. For
other types, this must always return zero.Class getObjectClass()
DataTypes.OBJECT
,
this returns the Java Class
object that class or interface that
all values of this attribute can be cast to.int getMinimumOccurrences()
int getMaximumOccurrences()
Integer.MAX_VALUE
indicates that the maximum number of occurrences is unbounded.boolean isPrimaryKey()
true
if this attribute forms all or part of the unique identifying
value for the feature it is contained by. The primary key attributes uniquely
identify this feature from other features of the same type. This is different
from the Feature.getReference(), which must uniquely identify
the Feature
among all feature types.boolean allowNull()
Evaluator getEvaluator()
IProjection getSRS()
Geometry
, this method returns its
Spatial Reference System.Geometry
, otherwise this method returns null.int getGeometryType()
getGeomType()
instead. To be removed in gvSIG
2.1.Geometry
, this method returns the specific
geometry type,
as defined in Geometry.TYPES
.Geometry.TYPES
int getGeometrySubType()
getGeomType()
instead. To be removed in gvSIG
2.1.Geometry
, this method returns the specific
geometry subtype,
as defined in Geometry.SUBTYPES
.Geometry.SUBTYPES
GeometryType getGeomType()
GeometryType
of the attribute if it is a geometry.DateFormat getDateFormat()
int getIndex()
Feature
.Object getAdditionalInfo(String infoName)
boolean isAutomatic()
boolean isTime()
true
if is a temporal attributeboolean isIndexed()
boolean allowIndexDuplicateds()
boolean isIndexAscending()
FeatureAttributeGetter getFeatureAttributeGetter()
FeatureAttributeGetter
.void setFeatureAttributeGetter(FeatureAttributeGetter featureAttributeGetter)
FeatureAttributeGetter
that is used to update the
presentation of a field.featureAttributeGetter
- the FeatureAttributeGetter
to set.FeatureAttributeEmulator getFeatureAttributeEmulator()
FeatureAttributeEmulator
to this attribute.boolean isComputed()