public interface FeatureAttributeDescriptor extends DynField_v2, LabeledValue<FeatureAttributeDescriptor>, Persistent, SupportToJson
DynField_v2.AvailableValuesProvider
ANY, CHOICE, RANGE, RELATION_TYPE_AGGREGATE, RELATION_TYPE_AGGREGATE_WITH_COMPOSITION, RELATION_TYPE_COLLABORATION, RELATION_TYPE_COLLABORATION_WITH_COMPOSITION, 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.
|
java.lang.String |
format(java.lang.Object value) |
java.lang.Object |
get(java.lang.String name)
Retrieve the value of the attribute "name".
|
java.lang.String |
getAdditionalInfo(java.lang.String infoName)
Returns additional information of the attribute
|
Expression |
getAvailableValuesExpression() |
Expression |
getAvailableValuesFilter() |
Coercion |
getCoercion()
Return a Coercion to convert a value to the type of this attribute.
|
CoercionContext |
getCoercionContext()
Return a CoercionContext for this attribute.
|
FeatureAttributeDescriptor |
getCopy()
Returns a clone of this attribute descriptor
|
DataProfile |
getDataProfile() |
java.lang.String |
getDataProfileName() |
java.lang.String |
getDataTypeName()
Returns the name of this attribute's data type.
|
java.text.DateFormat |
getDateFormat()
If this attribute is of type Date, then this method returns the date format
set by the data store.
|
java.lang.String |
getDefaultFormat() |
java.lang.Object |
getDefaultValueCoerced()
Return the default value coerced to the data type of attribute.
|
int |
getDisplaySize()
Return the designated column normal maximum width in characters.
|
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
|
FeatureType |
getFeatureType() |
ForeingKey |
getForeingKey() |
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 . |
Interval |
getInterval() |
java.lang.String |
getLabelOfValue(java.lang.Object value) |
java.util.Locale |
getLocale()
Returns the Locale associated with this attribute.
|
java.lang.String |
getLocalizedLabel() |
java.lang.String |
getLocalizedShortLabel() |
java.math.MathContext |
getMathContext()
For attributes of type
DataTypes.DECIMAL , this returns the
MathContext associated to this. |
int |
getMaximumOccurrences()
Returns the maximum number of occurrences of this attribute on a given
feature.The vast majority of data sources and data consumers will only
function with this value being one.
|
int |
getMinimumOccurrences()
Returns the minimum number of occurrences of this attribute on a given
feature.
|
java.lang.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.DECIMAL , this returns the maximum
number of digits. |
java.lang.String[] |
getRequiredFieldNames() |
int |
getRoundMode()
Returns the rounding mode to use when a value is converted to the
attribute's data type.
|
int |
getScale()
For attributes of type
DataTypes.DECIMAL , this returns the maximum
number of digits 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. |
FeatureStore |
getStore()
Return the store associated to this attribute descriptor.
|
boolean |
hasAvailableValues() |
boolean |
hasConstantAvailableValues() |
boolean |
hasDataProfile() |
boolean |
hasDescription() |
boolean |
hasLabel() |
boolean |
hasOnlyMetadataChanges(FeatureAttributeDescriptor other) |
boolean |
hasShortLabel() |
boolean |
isAutomatic()
Returns if value is created automatically by the source
|
boolean |
isAvoidCachingAvailableValues() |
boolean |
isComputed()
Return true if the attribute has an evaluator o an emulator.
|
boolean |
isForeingKey() |
boolean |
isInAvailableValues(java.lang.Object valueToCheck) |
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 |
recentUsed() |
FeatureAttributeDescriptor |
setAvailableValuesExpression(Expression expression) |
FeatureAttributeDescriptor |
setAvailableValuesExpression(java.lang.String expression) |
void |
setFeatureAttributeGetter(FeatureAttributeGetter featureAttributeGetter)
Deprecated.
use setFeatureAttributeGetterAndSetter
|
copyFrom, getAvailableValues, getAvailableValuesMethod, getCalculatedValue, getCalculateMethod, getClassNameOfItems, getClassNameOfValue, getClassOfItems, getCoercedDefaultValue, getDefaultValueSupplier, getDynClassOfItems, getDynClassOfValue, getRelationType, getTags, getTypeOfItems, getValidateElements, isAvailableValuesCalculated, isCalculated, setAvailableValues, setCalculateMethod, setClassOfItems, setClassOfItems, setClassOfItems, setClassOfValue, setClassOfValue, setDefaultValueSupplier, setRelationType, setTypeOfItems, setValidateElements
getLabel, getShortLabel, setLabel, setShortLabel
coerce, getAvailableValues, getClassOfValue, getDataType, getDefaultValue, getDescription, getElementsType, getGroup, getMaxValue, getMinValue, getName, getOder, getSubtype, getTheTypeOfAvailableValues, getType, isContainer, isHidden, isMandatory, isPersistent, isReadOnly, setAvailableValues, setAvailableValues, setClassOfValue, setDefaultDynValue, setDefaultFieldValue, setDescription, setElementsType, setElementsType, setGroup, setHidden, setMandatory, setMaxValue, setMinValue, setOrder, setPersistent, setReadOnly, setSubtype, setTheTypeOfAvailableValues, setType, setType, validate
clone, cloneQuietly, cloneQuietly
getLabel, getValue, label, toString
loadFromState, saveToState
toJson, toJson, toJsonBuilder, toJsonBuilder
FeatureAttributeDescriptor getCopy()
java.lang.String getDataTypeName()
boolean hasDataProfile()
java.lang.String getDataProfileName()
DataProfile getDataProfile()
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 getDisplaySize()
int getPrecision()
DataTypes.DECIMAL
, this returns the maximum
number of digits. For other types, this must always return zero.int getScale()
DataTypes.DECIMAL
, this returns the maximum
number of digits after the decimal point. For other types, this must always
return zero.java.math.MathContext getMathContext()
DataTypes.DECIMAL
, this returns the
MathContext associated to this. For other types return
MathContext.UNLIMITED
.CoercionContext getCoercionContext()
Coercion getCoercion()
int getRoundMode()
java.util.Locale getLocale()
Locale. ENGLISH
java.lang.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.java.text.DateFormat getDateFormat()
java.lang.Object getDefaultValueCoerced()
int getIndex()
Feature
.java.lang.String getAdditionalInfo(java.lang.String infoName)
infoName
- boolean isAutomatic()
boolean isTime()
true
if is a temporal attributeInterval getInterval()
boolean isIndexed()
boolean allowIndexDuplicateds()
boolean isIndexAscending()
boolean isForeingKey()
ForeingKey getForeingKey()
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()
FeatureStore getStore()
FeatureType getFeatureType()
java.lang.String[] getRequiredFieldNames()
void recentUsed()
java.lang.String getLocalizedShortLabel()
getLocalizedShortLabel
in interface DynField_LabelAttribute
java.lang.String getLocalizedLabel()
getLocalizedLabel
in interface DynField_LabelAttribute
java.lang.String getLabelOfValue(java.lang.Object value)
boolean hasOnlyMetadataChanges(FeatureAttributeDescriptor other)
boolean hasLabel()
boolean hasShortLabel()
boolean hasDescription()
java.lang.Object get(java.lang.String name)
name
- boolean hasConstantAvailableValues()
boolean isAvoidCachingAvailableValues()
Expression getAvailableValuesExpression()
FeatureAttributeDescriptor setAvailableValuesExpression(java.lang.String expression)
FeatureAttributeDescriptor setAvailableValuesExpression(Expression expression)
boolean isInAvailableValues(java.lang.Object valueToCheck)
boolean hasAvailableValues()
Expression getAvailableValuesFilter()
java.lang.String getDefaultFormat()
java.lang.String format(java.lang.Object value)