org.gvsig.fmap.dal.feature
Interface EditableFeatureAttributeDescriptor

All Superinterfaces:
DynField, FeatureAttributeDescriptor

public interface EditableFeatureAttributeDescriptor
extends FeatureAttributeDescriptor

This interface represents a FeatureAttributeDescriptor in editable state. To edit a FeatureAttributeDescriptor you have to obtain its instance of EditableFeatureAttributeDescriptor and then perform editing operations on it. Once you have completed the editing you can save the changes to the original FeatureAttributeDescriptor. This is the only way to edit a FeatureAttributeDescriptor.


Field Summary
 
Fields inherited from interface org.gvsig.tools.dynobject.DynField
ANY, CHOICE, RANGE
 
Method Summary
 void checkIntegrity()
          Checks attribute integrity
 EditableFeatureAttributeDescriptor setAdditionalInfo(String infoName, Object value)
          Sets additional information of the attribute
 EditableFeatureAttributeDescriptor setAllowNull(boolean allowNull)
          Sets whether the related FeatureAttribute can have a null value
 EditableFeatureAttributeDescriptor setDataType(int type)
          Sets the data type
 EditableFeatureAttributeDescriptor setDefaultValue(Object defaultValue)
          Sets the default value
 EditableFeatureAttributeDescriptor setEvaluator(Evaluator evaluator)
          Sets the expression evaluator that the FeatureAttribute will use
 EditableFeatureAttributeDescriptor setGeometrySubType(int geometrySubType)
          Deprecated. use setGeometryType(GeometryType) instead
 EditableFeatureAttributeDescriptor setGeometryType(org.gvsig.fmap.geom.type.GeometryType geometryType)
          Sets the geometry type
 EditableFeatureAttributeDescriptor setGeometryType(int geometryType)
          Deprecated. use setGeometryType(GeometryType) instead
 EditableFeatureAttributeDescriptor setIsAutomatic(boolean isAutomatic)
          Sets whether the related FeatureAttribute is part of the FeatureType's primary key
 EditableFeatureAttributeDescriptor setIsPrimaryKey(boolean isPrimaryKey)
          Sets whether the related FeatureAttribute is part of the FeatureType's primary key
 EditableFeatureAttributeDescriptor setIsReadOnly(boolean isReadOnly)
          Sets whether the related FeatureAttribute is read only
 EditableFeatureAttributeDescriptor setIsTime(boolean isTime)
          Sets is the attribute is a temporal attribute.
 EditableFeatureAttributeDescriptor setMaximumOccurrences(int maximumOccurrences)
          Sets the maximum number of occurrences
 EditableFeatureAttributeDescriptor setMinimumOccurrences(int minimumOccurrences)
          Sets the number of minimum occurrences
 EditableFeatureAttributeDescriptor setName(String name)
          Sets the name
 EditableFeatureAttributeDescriptor setObjectClass(Class theClass)
          Sets the Class to which the related FeatureAttribute can be cast
 EditableFeatureAttributeDescriptor setPrecision(int precision)
          Sets the precision
 EditableFeatureAttributeDescriptor setSize(int size)
          Sets the size
 EditableFeatureAttributeDescriptor setSRS(org.cresques.cts.IProjection SRS)
          Sets the SRS.
 
Methods inherited from interface org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor
allowNull, getAdditionalInfo, getCopy, getDataTypeName, getDateFormat, getEvaluator, getFeatureAttributeGetter, getGeometrySubType, getGeometryType, getGeomType, getIndex, getMaximumOccurrences, getMinimumOccurrences, getObjectClass, getPrecision, getSize, getSRS, isAutomatic, isPrimaryKey, isTime, setFeatureAttributeGetter
 
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

checkIntegrity

void checkIntegrity()
                    throws AttributeFeatureTypeIntegrityException
Checks attribute integrity

Throws:
AttributeFeatureTypeIntegrityException

setName

EditableFeatureAttributeDescriptor setName(String name)
Sets the name

Parameters:
name - to set
Returns:
this

setDataType

EditableFeatureAttributeDescriptor setDataType(int type)
Sets the data type

Parameters:
type - one of the constants defined in DataTypes
Returns:
this

setSize

EditableFeatureAttributeDescriptor setSize(int size)
Sets the size

Parameters:
size - a size of type int
Returns:
this

setPrecision

EditableFeatureAttributeDescriptor setPrecision(int precision)
Sets the precision

Parameters:
precision - of type int
Returns:
this

setObjectClass

EditableFeatureAttributeDescriptor setObjectClass(Class theClass)
Sets the Class to which the related FeatureAttribute can be cast

Parameters:
theClass - Class to which the related FeatureAttribute can be cast
Returns:
this

setMinimumOccurrences

EditableFeatureAttributeDescriptor setMinimumOccurrences(int minimumOccurrences)
Sets the number of minimum occurrences

Parameters:
minimumOccurrences -
Returns:
this

setMaximumOccurrences

EditableFeatureAttributeDescriptor setMaximumOccurrences(int maximumOccurrences)
Sets the maximum number of occurrences

Parameters:
maximumOccurrences -
Returns:

setIsPrimaryKey

EditableFeatureAttributeDescriptor setIsPrimaryKey(boolean isPrimaryKey)
Sets whether the related FeatureAttribute is part of the FeatureType's primary key

Parameters:
isPrimaryKey - true if is part of the primary key
Returns:
this

setEvaluator

EditableFeatureAttributeDescriptor setEvaluator(Evaluator evaluator)
Sets the expression evaluator that the FeatureAttribute will use

Parameters:
evaluator - an implementation of DAL's Evaluator interface
Returns:
this

setIsReadOnly

EditableFeatureAttributeDescriptor setIsReadOnly(boolean isReadOnly)
Sets whether the related FeatureAttribute is read only

Parameters:
isReadOnly -
Returns:
this

setAllowNull

EditableFeatureAttributeDescriptor setAllowNull(boolean allowNull)
Sets whether the related FeatureAttribute can have a null value

Parameters:
allowNull - a boolean value determining whether the FeatureAttribute can be null
Returns:
this

setSRS

EditableFeatureAttributeDescriptor setSRS(org.cresques.cts.IProjection SRS)
Sets the SRS.

Parameters:
SRS -
Returns:

setGeometryType

EditableFeatureAttributeDescriptor setGeometryType(int geometryType)
Deprecated. use setGeometryType(GeometryType) instead

Sets the geometry type

Parameters:
geometryType -
Returns:
this

setGeometrySubType

EditableFeatureAttributeDescriptor setGeometrySubType(int geometrySubType)
Deprecated. use setGeometryType(GeometryType) instead

Sets the geometry subtype

Parameters:
geometrySubType -
Returns:
this

setGeometryType

EditableFeatureAttributeDescriptor setGeometryType(org.gvsig.fmap.geom.type.GeometryType geometryType)
Sets the geometry type

Parameters:
geometryType -
Returns:
this

setDefaultValue

EditableFeatureAttributeDescriptor setDefaultValue(Object defaultValue)
Sets the default value

Parameters:
defaultValue -
Returns:
this

setAdditionalInfo

EditableFeatureAttributeDescriptor setAdditionalInfo(String infoName,
                                                     Object value)
Sets additional information of the attribute

Returns:
TODO

setIsAutomatic

EditableFeatureAttributeDescriptor setIsAutomatic(boolean isAutomatic)
Sets whether the related FeatureAttribute is part of the FeatureType's primary key

Parameters:
isPrimaryKey - true if is part of the primary key
Returns:
this

setIsTime

EditableFeatureAttributeDescriptor setIsTime(boolean isTime)
Sets is the attribute is a temporal attribute.

Parameters:
isTime - true if the attribute is temporal
Returns:
this


Copyright © 2004-2012 gvSIG. All Rights Reserved.