public class DynFieldFacadeOfAFeatureAttributeDescriptor extends java.lang.Object implements FeatureAttributeDescriptor
ANY, CHOICE, RANGE, RELATION_TYPE_AGGREGATE, RELATION_TYPE_COLLABORATION, RELATION_TYPE_COMPOSITION, RELATION_TYPE_IDENTITY, RELATION_TYPE_NONE| Constructor and Description |
|---|
DynFieldFacadeOfAFeatureAttributeDescriptor(DynField field) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowIndexDuplicateds() |
boolean |
allowNull()
Indicates whether this attribute accepts null values.
|
java.lang.Object |
clone()
Creates a copy of the object.
|
java.lang.Object |
coerce(java.lang.Object value)
Force the type of value to the type of the field.
|
java.lang.Object |
getAdditionalInfo(java.lang.String infoName)
Returns additional information of the attribute
|
DynObjectValueItem[] |
getAvailableValues()
Return the available values for this field.
|
java.lang.Class |
getClassOfItems()
If the field is a container (List, Map or Set) return the java class of
its items.
|
java.lang.Class |
getClassOfValue()
Return the java class of the value of the field.
|
FeatureAttributeDescriptor |
getCopy()
Returns a clone of this attribute descriptor
|
DataType |
getDataType() |
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.Object |
getDefaultValue()
Return the default value used in creation of new objects with this field.
|
java.lang.String |
getDescription()
Return the descripcion associated to this field.
|
DynField |
getElementsType()
When a field is of type container, this method return a DynClass that
define the type of elements.
|
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()
Gets if the attribute has a
FeatureAttributeGetter. |
int |
getGeometrySubType()
If this attribute is a
Geometry, this method returns the specific
geometry subtype,
as defined in Geometry.SUBTYPES. |
int |
getGeometryType()
If this attribute is a
Geometry, this method returns the specific
geometry type,
as defined in Geometry.TYPES. |
GeometryType |
getGeomType()
Returns the
GeometryType of the attribute if it is a geometry. |
java.lang.String |
getGroup()
Return a string that identify a group for this field.
|
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.
|
java.lang.Object |
getMaxValue() |
int |
getMinimumOccurrences()
Returns the minimum number of occurrences of this attribute on a given
feature.
|
java.lang.Object |
getMinValue() |
java.lang.String |
getName()
Return the name of the field.
|
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 |
getOder()
Return the ordinal that identify the order of this field in the
DynObject. |
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. |
java.lang.String |
getSubtype()
Return the subtype associated to this field.
|
int |
getTheTypeOfAvailableValues() |
int |
getType()
Return the type used in this field.
|
boolean |
isAutomatic()
Returns if value is created automatically by the source
|
boolean |
isContainer()
Return true if the value of this field is a container.
|
boolean |
isHidden()
Inform if this field can be visible or not for the user.
|
boolean |
isIndexAscending() |
boolean |
isIndexed()
Return true if the attribute has and index in the table.
|
boolean |
isMandatory()
Return true if this field is mandatory.
|
boolean |
isPersistent()
Returns if the field is persistent or volatile.
|
boolean |
isPrimaryKey()
Returns
true if this attribute forms all or part of the unique identifying
value for the feature it is contained by. |
boolean |
isReadOnly()
Returns if the field is readOnly or not.
|
boolean |
isTime()
Gets if the attribute is a temporal attribute.
|
DynField |
setAvailableValues(DynObjectValueItem[] values) |
DynField |
setAvailableValues(java.util.List values) |
DynField |
setClassOfItems(java.lang.Class theClass)
If field type is List, Set or Map, this class is the class of items.
|
DynField |
setClassOfValue(java.lang.Class theClass)
Sets the class used for the values of the field.
|
DynField |
setDefaultDynValue(java.lang.Object defaultValue) |
DynField |
setDefaultFieldValue(java.lang.Object defaultValue)
Set the default value used for this field when a new object with this
field is created.
|
DynField |
setDescription(java.lang.String description)
Sets the description asociated to this field.
|
DynField |
setElementsType(DynStruct type)
Set the type of items when the field is a container.
|
DynField |
setElementsType(int type)
Set the type of items when the field is a container.
|
void |
setFeatureAttributeGetter(FeatureAttributeGetter featureAttributeGetter)
Sets the
FeatureAttributeGetter that is used to update the
presentation of a field. |
DynField |
setGroup(java.lang.String groupName) |
DynField |
setHidden(boolean hidden) |
DynField |
setMandatory(boolean mandatory) |
DynField |
setMaxValue(java.lang.Object maxValue) |
DynField |
setMinValue(java.lang.Object minValue) |
DynField |
setOrder(int order) |
DynField |
setPersistent(boolean persistent)
Sets if the field must be persisted or not.
|
DynField |
setReadOnly(boolean isReadOnly)
Sets if the field is readOnly or not.
|
DynField |
setSubtype(java.lang.String subtype)
Strings used as subtype for this field.
|
DynField |
setTheTypeOfAvailableValues(int type) |
DynField |
setType(DataType type) |
DynField |
setType(int type)
Sets the type of the field.
|
void |
validate(java.lang.Object value)
Validate that the value match the properties of the field.
|
public DynFieldFacadeOfAFeatureAttributeDescriptor(DynField field)
public FeatureAttributeDescriptor getCopy()
FeatureAttributeDescriptorgetCopy in interface FeatureAttributeDescriptorpublic java.lang.String getDataTypeName()
FeatureAttributeDescriptorgetDataTypeName in interface FeatureAttributeDescriptorpublic int getSize()
FeatureAttributeDescriptorDataTypes
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.getSize in interface FeatureAttributeDescriptorint indicating the size of the attribute.public int getPrecision()
FeatureAttributeDescriptorDataTypes.DOUBLE and DataTypes.FLOAT
, this returns the maximum number of places after the decimal point. For
other types, this must always return zero.getPrecision in interface FeatureAttributeDescriptorpublic java.lang.Class getObjectClass()
FeatureAttributeDescriptorDataTypes.OBJECT,
this returns the Java Class object that class or interface that
all values of this attribute can be cast to.getObjectClass in interface FeatureAttributeDescriptorpublic int getMinimumOccurrences()
FeatureAttributeDescriptorgetMinimumOccurrences in interface FeatureAttributeDescriptorpublic int getMaximumOccurrences()
FeatureAttributeDescriptorInteger.MAX_VALUE
indicates that the maximum number of occurrences is unbounded.getMaximumOccurrences in interface FeatureAttributeDescriptorpublic boolean isPrimaryKey()
FeatureAttributeDescriptortrue 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.isPrimaryKey in interface FeatureAttributeDescriptorpublic boolean allowNull()
FeatureAttributeDescriptorallowNull in interface FeatureAttributeDescriptorpublic Evaluator getEvaluator()
FeatureAttributeDescriptorgetEvaluator in interface FeatureAttributeDescriptorpublic IProjection getSRS()
FeatureAttributeDescriptorGeometry, this method returns its
Spatial Reference System.getSRS in interface FeatureAttributeDescriptorGeometry, otherwise this method returns null.public int getGeometryType()
FeatureAttributeDescriptorGeometry, this method returns the specific
geometry type,
as defined in Geometry.TYPES.getGeometryType in interface FeatureAttributeDescriptorGeometry.TYPESpublic int getGeometrySubType()
FeatureAttributeDescriptorGeometry, this method returns the specific
geometry subtype,
as defined in Geometry.SUBTYPES.getGeometrySubType in interface FeatureAttributeDescriptorGeometry.SUBTYPESpublic GeometryType getGeomType()
FeatureAttributeDescriptorGeometryType of the attribute if it is a geometry.getGeomType in interface FeatureAttributeDescriptorpublic java.text.DateFormat getDateFormat()
FeatureAttributeDescriptorgetDateFormat in interface FeatureAttributeDescriptorpublic int getIndex()
FeatureAttributeDescriptorFeature.getIndex in interface FeatureAttributeDescriptorpublic java.lang.Object getAdditionalInfo(java.lang.String infoName)
FeatureAttributeDescriptorgetAdditionalInfo in interface FeatureAttributeDescriptorpublic boolean isAutomatic()
FeatureAttributeDescriptorisAutomatic in interface FeatureAttributeDescriptorpublic boolean isTime()
FeatureAttributeDescriptorisTime in interface FeatureAttributeDescriptortrue if is a temporal attributepublic boolean isIndexed()
FeatureAttributeDescriptorisIndexed in interface FeatureAttributeDescriptorpublic boolean allowIndexDuplicateds()
allowIndexDuplicateds in interface FeatureAttributeDescriptorpublic boolean isIndexAscending()
isIndexAscending in interface FeatureAttributeDescriptorpublic FeatureAttributeGetter getFeatureAttributeGetter()
FeatureAttributeDescriptorFeatureAttributeGetter.getFeatureAttributeGetter in interface FeatureAttributeDescriptorpublic void setFeatureAttributeGetter(FeatureAttributeGetter featureAttributeGetter)
FeatureAttributeDescriptorFeatureAttributeGetter that is used to update the
presentation of a field.setFeatureAttributeGetter in interface FeatureAttributeDescriptorfeatureAttributeGetter - the FeatureAttributeGetter to set.public FeatureAttributeEmulator getFeatureAttributeEmulator()
FeatureAttributeDescriptorFeatureAttributeEmulator to this attribute.getFeatureAttributeEmulator in interface FeatureAttributeDescriptorpublic java.lang.String getName()
DynFieldpublic int getType()
DynFieldDataTypespublic DataType getDataType()
getDataType in interface DynFieldpublic java.lang.String getSubtype()
DynFieldDataTypes.DYNOBJECT, the subtype are
the fullname of the DynClass.getSubtype in interface DynFieldpublic java.lang.String getDescription()
DynFieldgetDescription in interface DynFieldpublic java.lang.Object getDefaultValue()
DynFieldgetDefaultValue in interface DynFieldpublic java.lang.String getGroup()
DynFieldpublic int getOder()
DynFieldDynObject.public boolean isMandatory()
DynFieldisMandatory in interface DynFieldpublic boolean isPersistent()
DynFieldisPersistent in interface DynFieldpublic boolean isHidden()
DynFieldpublic boolean isReadOnly()
DynFieldisReadOnly in interface DynFieldpublic boolean isContainer()
DynFieldDataTypeisContainer in interface DynFieldpublic DynObjectValueItem[] getAvailableValues()
DynFieldgetAvailableValues in interface DynFieldpublic java.lang.Object getMinValue()
getMinValue in interface DynFieldpublic java.lang.Object getMaxValue()
getMaxValue in interface DynFieldpublic java.lang.Class getClassOfValue()
DynFieldgetClassOfValue in interface DynFieldpublic java.lang.Class getClassOfItems()
DynFieldgetClassOfItems in interface DynFieldpublic DynField setDescription(java.lang.String description)
DynFieldsetDescription in interface DynFieldDynField objectpublic DynField setType(int type)
DynFieldDataTypes.
This method assign the default values of the type for "ClassOfValue" and
"subType".public DynField setSubtype(java.lang.String subtype)
DynFieldDataTypes.DYNOBJECT, the subtype is the
fullname of the DynStruct.setSubtype in interface DynFieldDynField objectpublic DynField setDefaultFieldValue(java.lang.Object defaultValue)
DynFieldsetDefaultFieldValue in interface DynFieldDynField objectpublic DynField setGroup(java.lang.String groupName)
public DynField setMandatory(boolean mandatory)
setMandatory in interface DynFieldpublic DynField setPersistent(boolean persistent)
DynFieldsetPersistent in interface DynFieldpersistent - if the field must be persisted or notDynField objectDynField.isPersistent()public DynField setAvailableValues(DynObjectValueItem[] values)
setAvailableValues in interface DynFieldpublic DynField setAvailableValues(java.util.List values)
setAvailableValues in interface DynFieldpublic DynField setMinValue(java.lang.Object minValue)
setMinValue in interface DynFieldpublic DynField setMaxValue(java.lang.Object maxValue)
setMaxValue in interface DynFieldpublic DynField setClassOfValue(java.lang.Class theClass) throws DynFieldIsNotAContainerException
DynFieldsetClassOfValue in interface DynFieldDynField objectDynFieldIsNotAContainerExceptionpublic DynField setClassOfItems(java.lang.Class theClass) throws DynFieldIsNotAContainerException
DynFieldsetClassOfItems in interface DynFieldDynField objectDynFieldIsNotAContainerExceptionpublic DynField setReadOnly(boolean isReadOnly)
DynFieldsetReadOnly in interface DynFieldisReadOnly - if the graphic component associated to this field
should be readOnly or notpublic DynField getElementsType()
DynFieldgetElementsType in interface DynFieldpublic DynField setElementsType(int type) throws DynFieldIsNotAContainerException
DynFieldsetElementsType in interface DynFieldtype - de los elementosDynField objectDynFieldIsNotAContainerExceptionpublic DynField setElementsType(DynStruct type) throws DynFieldIsNotAContainerException
DynFieldsetElementsType in interface DynFieldtype - de los elementosDynField objectDynFieldIsNotAContainerExceptionpublic void validate(java.lang.Object value)
throws DynFieldValidateException
DynFieldvalidate in interface DynFieldDynFieldValidateExceptionpublic java.lang.Object coerce(java.lang.Object value)
throws CoercionException
DynFieldcoerce in interface DynFieldCoercionExceptionpublic int getTheTypeOfAvailableValues()
getTheTypeOfAvailableValues in interface DynFieldpublic DynField setDefaultDynValue(java.lang.Object defaultValue)
setDefaultDynValue in interface DynFieldpublic DynField setTheTypeOfAvailableValues(int type)
setTheTypeOfAvailableValues in interface DynFieldpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Cloneableclone in class java.lang.Objectjava.lang.CloneNotSupportedException - 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()}.