public class DefaultEditableFeatureAttributeDescriptor extends DefaultFeatureAttributeDescriptor implements EditableFeatureAttributeDescriptor
DynField_v2.AvailableValuesProvider
additionalInfo, allowIndexDuplicateds, allowNull, availableValues, dataType, dateFormat, defaultValue, description, evaluator, featureAttributeEmulator, featureAttributeGetter, geometrySubType, geometryType, geomType, groupName, hidden, index, indexed, isAutomatic, isIndexAscending, isTime, label, maximumOccurrences, maxValue, minimumOccurrences, minValue, name, objectClass, order, precision, primaryKey, readOnly, size, SRS, tags
ANY, CHOICE, RANGE, RELATION_TYPE_AGGREGATE, RELATION_TYPE_COLLABORATION, RELATION_TYPE_COMPOSITION, RELATION_TYPE_IDENTITY, RELATION_TYPE_NONE
Modifier | Constructor and Description |
---|---|
|
DefaultEditableFeatureAttributeDescriptor() |
protected |
DefaultEditableFeatureAttributeDescriptor(DefaultFeatureAttributeDescriptor other) |
Modifier and Type | Method and Description |
---|---|
void |
checkIntegrity()
Checks attribute integrity
|
void |
fixAll() |
String |
getOriginalName()
Returns the attribute descriptor's name before
it was changed or null if never changed
|
DefaultFeatureAttributeDescriptor |
getSource() |
boolean |
hasStrongChanges() |
EditableFeatureAttributeDescriptor |
setAdditionalInfo(String infoName,
Object value)
Sets additional information of the attribute
|
EditableFeatureAttributeDescriptor |
setAllowIndexDuplicateds(boolean allowDuplicateds) |
EditableFeatureAttributeDescriptor |
setAllowNull(boolean allowNull)
Sets whether the related FeatureAttribute can have a null value
|
EditableFeatureAttributeDescriptor |
setDataType(int type)
Sets the data type
|
EditableFeatureAttributeDescriptor |
setDateFormat(DateFormat dateFormat)
If this attribute is of type Date, then this method set
the date format set by the data store.
|
EditableFeatureAttributeDescriptor |
setDefaultValue(Object defaultValue)
Sets the default value
|
EditableFeatureAttributeDescriptor |
setEvaluator(Evaluator evaluator)
Sets the expression evaluator that the FeatureAttribute will use
|
EditableFeatureAttributeDescriptor |
setFeatureAttributeEmulator(FeatureAttributeEmulator featureAttributeEmulator)
Sets the
FeatureAttributeEmulator that is used to update the
presentation of a field. |
EditableFeatureAttributeDescriptor |
setGeometrySubType(int subType)
Sets the geometry subtype
|
EditableFeatureAttributeDescriptor |
setGeometryType(GeometryType geometryType)
Sets the geometry type
|
EditableFeatureAttributeDescriptor |
setGeometryType(int type)
Sets the geometry type
|
EditableFeatureAttributeDescriptor |
setGeometryType(int type,
int subType) |
EditableFeatureAttributeDescriptor |
setIsAutomatic(boolean isAutomatic)
Sets whether the related FeatureAttribute is part of the FeatureType's
primary key
|
EditableFeatureAttributeDescriptor |
setIsIndexAscending(boolean ascending) |
EditableFeatureAttributeDescriptor |
setIsIndexed(boolean isIndexed)
Sets if this attribute is indexed in the table.
|
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(IProjection SRS)
Sets the SRS.
|
allowIndexDuplicateds, allowNull, clone, coerce, copyFrom, equals, getAdditionalInfo, getAvailableValues, getAvailableValues, getAvailableValuesMethod, getCalculatedValue, getCalculateMethod, getClassNameOfItems, getClassNameOfValue, getClassOfItems, getClassOfValue, getCopy, getDataType, getDataTypeName, getDateFormat, getDefaultValue, getDescription, getDynClassOfItems, getDynClassOfValue, getElementsType, getEvaluator, getFeatureAttributeEmulator, getFeatureAttributeGetter, getGeometrySubType, getGeometryType, getGeomType, getGroup, getIndex, getLabel, getMaximumOccurrences, getMaxValue, getMinimumOccurrences, getMinValue, getName, getObjectClass, getOder, getPrecision, getRelationType, getSize, getSRS, getSubtype, getTags, getTheTypeOfAvailableValues, getType, getTypeOfItems, getValidateElements, isAutomatic, isAvailableValuesCalculated, isCalculated, isContainer, isHidden, isIndexAscending, isIndexed, isMandatory, isPersistent, isPrimaryKey, isReadOnly, isTime, loadFromState, saveToState, setAvailableValues, setAvailableValues, setAvailableValues, setCalculateMethod, setClassOfItems, setClassOfItems, setClassOfItems, setClassOfValue, setClassOfValue, setClassOfValue, setConstantValue, setDefaultDynValue, setDefaultFieldValue, setDescription, setElementsType, setElementsType, setFeatureAttributeGetter, setGroup, setHidden, setIndex, setLabel, setMandatory, setMaxValue, setMinValue, setOrder, setPersistent, setReadOnly, setRelationType, setSubtype, setTheTypeOfAvailableValues, setType, setType, setTypeOfItems, setValidateElements, validate
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allowIndexDuplicateds, allowNull, getAdditionalInfo, getCopy, getDataTypeName, getDateFormat, getEvaluator, getFeatureAttributeEmulator, getFeatureAttributeGetter, getGeometrySubType, getGeometryType, getGeomType, getIndex, getMaximumOccurrences, getMinimumOccurrences, getObjectClass, getPrecision, getSize, getSRS, isAutomatic, isIndexAscending, isIndexed, isPrimaryKey, isTime, setFeatureAttributeGetter
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
protected DefaultEditableFeatureAttributeDescriptor(DefaultFeatureAttributeDescriptor other)
public DefaultEditableFeatureAttributeDescriptor()
public DefaultFeatureAttributeDescriptor getSource()
public void fixAll()
public void checkIntegrity() throws AttributeFeatureTypeIntegrityException
EditableFeatureAttributeDescriptor
checkIntegrity
in interface EditableFeatureAttributeDescriptor
AttributeFeatureTypeIntegrityException
public EditableFeatureAttributeDescriptor setAllowNull(boolean allowNull)
EditableFeatureAttributeDescriptor
setAllowNull
in interface EditableFeatureAttributeDescriptor
allowNull
- a boolean value determining whether the FeatureAttribute can be nullpublic EditableFeatureAttributeDescriptor setDataType(int type)
EditableFeatureAttributeDescriptor
setDataType
in interface EditableFeatureAttributeDescriptor
type
- one of the constants defined in DataTypes
public EditableFeatureAttributeDescriptor setDefaultValue(Object defaultValue)
EditableFeatureAttributeDescriptor
setDefaultValue
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setEvaluator(Evaluator evaluator)
EditableFeatureAttributeDescriptor
setEvaluator
in interface EditableFeatureAttributeDescriptor
evaluator
- an implementation of DAL's Evaluator interfacepublic EditableFeatureAttributeDescriptor setFeatureAttributeEmulator(FeatureAttributeEmulator featureAttributeEmulator)
EditableFeatureAttributeDescriptor
FeatureAttributeEmulator
that is used to update the
presentation of a field.setFeatureAttributeEmulator
in interface EditableFeatureAttributeDescriptor
featureAttributeEmulator
- the FeatureAttributeEmulator
to set.public EditableFeatureAttributeDescriptor setGeometryType(int type)
EditableFeatureAttributeDescriptor
setGeometryType
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setGeometrySubType(int subType)
EditableFeatureAttributeDescriptor
setGeometrySubType
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setGeometryType(GeometryType geometryType)
EditableFeatureAttributeDescriptor
setGeometryType
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setGeometryType(int type, int subType)
setGeometryType
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setIsPrimaryKey(boolean isPrimaryKey)
EditableFeatureAttributeDescriptor
setIsPrimaryKey
in interface EditableFeatureAttributeDescriptor
isPrimaryKey
- true if is part of the primary keypublic EditableFeatureAttributeDescriptor setIsReadOnly(boolean isReadOnly)
EditableFeatureAttributeDescriptor
setIsReadOnly
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setMaximumOccurrences(int maximumOccurrences)
EditableFeatureAttributeDescriptor
setMaximumOccurrences
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setMinimumOccurrences(int minimumOccurrences)
EditableFeatureAttributeDescriptor
setMinimumOccurrences
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setName(String name)
EditableFeatureAttributeDescriptor
setName
in interface EditableFeatureAttributeDescriptor
name
- to setpublic String getOriginalName()
EditableFeatureAttributeDescriptor
getOriginalName
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setObjectClass(Class theClass)
EditableFeatureAttributeDescriptor
setObjectClass
in interface EditableFeatureAttributeDescriptor
theClass
- Class to which the related FeatureAttribute can be castpublic EditableFeatureAttributeDescriptor setPrecision(int precision)
EditableFeatureAttributeDescriptor
setPrecision
in interface EditableFeatureAttributeDescriptor
precision
- of type intpublic EditableFeatureAttributeDescriptor setSRS(IProjection SRS)
EditableFeatureAttributeDescriptor
setSRS
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setSize(int size)
EditableFeatureAttributeDescriptor
setSize
in interface EditableFeatureAttributeDescriptor
size
- a size of type intpublic boolean hasStrongChanges()
public EditableFeatureAttributeDescriptor setAdditionalInfo(String infoName, Object value)
EditableFeatureAttributeDescriptor
setAdditionalInfo
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setIsAutomatic(boolean isAutomatic)
EditableFeatureAttributeDescriptor
setIsAutomatic
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setIsTime(boolean isTime)
EditableFeatureAttributeDescriptor
setIsTime
in interface EditableFeatureAttributeDescriptor
isTime
- true
if the attribute is temporalpublic EditableFeatureAttributeDescriptor setDateFormat(DateFormat dateFormat)
EditableFeatureAttributeDescriptor
setDateFormat
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setIsIndexed(boolean isIndexed)
EditableFeatureAttributeDescriptor
setIsIndexed
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setAllowIndexDuplicateds(boolean allowDuplicateds)
setAllowIndexDuplicateds
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setIsIndexAscending(boolean ascending)
setIsIndexAscending
in interface EditableFeatureAttributeDescriptor