|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FeatureAttributeDescriptor
A feature attribute descriptor contains information about one of the attributes in a feature, such as its name, data type or precision.
Field Summary |
---|
Fields inherited from interface org.gvsig.tools.dynobject.DynField |
---|
ANY, CHOICE, RANGE |
Method Summary | |
---|---|
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 |
FeatureAttributeGetter |
getFeatureAttributeGetter()
Gets if the attribute has a FeatureAttributeGetter . |
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. |
org.gvsig.fmap.geom.type.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. |
org.cresques.cts.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 |
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)
Sets the FeatureAttributeGetter that is used to update the
presentation of a field. |
Methods inherited from interface org.gvsig.tools.dynobject.DynField |
---|
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 |
Method Detail |
---|
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()
org.cresques.cts.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
org.gvsig.fmap.geom.type.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 attributeFeatureAttributeGetter getFeatureAttributeGetter()
FeatureAttributeGetter
.
void setFeatureAttributeGetter(FeatureAttributeGetter featureAttributeGetter)
FeatureAttributeGetter
that is used to update the
presentation of a field.
featureAttributeGetter
- the FeatureAttributeGetter
to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |