|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EditableFeatureAttributeDescriptor
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 |
---|
void checkIntegrity() throws AttributeFeatureTypeIntegrityException
AttributeFeatureTypeIntegrityException
EditableFeatureAttributeDescriptor setName(String name)
name
- to set
EditableFeatureAttributeDescriptor setDataType(int type)
type
- one of the constants defined in DataTypes
EditableFeatureAttributeDescriptor setSize(int size)
size
- a size of type int
EditableFeatureAttributeDescriptor setPrecision(int precision)
precision
- of type int
EditableFeatureAttributeDescriptor setObjectClass(Class theClass)
theClass
- Class to which the related FeatureAttribute can be cast
EditableFeatureAttributeDescriptor setMinimumOccurrences(int minimumOccurrences)
minimumOccurrences
-
EditableFeatureAttributeDescriptor setMaximumOccurrences(int maximumOccurrences)
maximumOccurrences
-
EditableFeatureAttributeDescriptor setIsPrimaryKey(boolean isPrimaryKey)
isPrimaryKey
- true if is part of the primary key
EditableFeatureAttributeDescriptor setEvaluator(Evaluator evaluator)
evaluator
- an implementation of DAL's Evaluator interface
EditableFeatureAttributeDescriptor setIsReadOnly(boolean isReadOnly)
isReadOnly
-
EditableFeatureAttributeDescriptor setAllowNull(boolean allowNull)
allowNull
- a boolean value determining whether the FeatureAttribute can be null
EditableFeatureAttributeDescriptor setSRS(org.cresques.cts.IProjection SRS)
SRS
-
EditableFeatureAttributeDescriptor setGeometryType(int geometryType)
setGeometryType(GeometryType)
instead
geometryType
-
EditableFeatureAttributeDescriptor setGeometrySubType(int geometrySubType)
setGeometryType(GeometryType)
instead
geometrySubType
-
EditableFeatureAttributeDescriptor setGeometryType(org.gvsig.fmap.geom.type.GeometryType geometryType)
geometryType
-
EditableFeatureAttributeDescriptor setDefaultValue(Object defaultValue)
defaultValue
-
EditableFeatureAttributeDescriptor setAdditionalInfo(String infoName, Object value)
EditableFeatureAttributeDescriptor setIsAutomatic(boolean isAutomatic)
isPrimaryKey
- true if is part of the primary key
EditableFeatureAttributeDescriptor setIsTime(boolean isTime)
isTime
- true
if the attribute is temporal
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |