public class DefaultEditableFeatureAttributeDescriptor extends DefaultFeatureAttributeDescriptor implements EditableFeatureAttributeDescriptor
DynField_v2.AvailableValuesProvideradditionalInfo, 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, tagsANY, 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, isComputed, 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, validatefinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallowIndexDuplicateds, allowNull, getAdditionalInfo, getCopy, getDataTypeName, getDateFormat, getEvaluator, getFeatureAttributeEmulator, getFeatureAttributeGetter, getGeometrySubType, getGeometryType, getGeomType, getIndex, getMaximumOccurrences, getMinimumOccurrences, getObjectClass, getPrecision, getSize, getSRS, isAutomatic, isComputed, isIndexAscending, isIndexed, isPrimaryKey, isTime, setFeatureAttributeGettercoerce, 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, validateprotected DefaultEditableFeatureAttributeDescriptor(DefaultFeatureAttributeDescriptor other)
public DefaultEditableFeatureAttributeDescriptor()
public DefaultFeatureAttributeDescriptor getSource()
public void fixAll()
public void checkIntegrity()
throws AttributeFeatureTypeIntegrityException
EditableFeatureAttributeDescriptorcheckIntegrity in interface EditableFeatureAttributeDescriptorAttributeFeatureTypeIntegrityExceptionpublic EditableFeatureAttributeDescriptor setAllowNull(boolean allowNull)
EditableFeatureAttributeDescriptorsetAllowNull in interface EditableFeatureAttributeDescriptorallowNull - a boolean value determining whether the FeatureAttribute can be nullpublic EditableFeatureAttributeDescriptor setDataType(int type)
EditableFeatureAttributeDescriptorsetDataType in interface EditableFeatureAttributeDescriptortype - one of the constants defined in DataTypespublic EditableFeatureAttributeDescriptor setDefaultValue(Object defaultValue)
EditableFeatureAttributeDescriptorsetDefaultValue in interface EditableFeatureAttributeDescriptorpublic EditableFeatureAttributeDescriptor setEvaluator(Evaluator evaluator)
EditableFeatureAttributeDescriptorsetEvaluator in interface EditableFeatureAttributeDescriptorevaluator - an implementation of DAL's Evaluator interfacepublic EditableFeatureAttributeDescriptor setFeatureAttributeEmulator(FeatureAttributeEmulator featureAttributeEmulator)
EditableFeatureAttributeDescriptorFeatureAttributeEmulator that is used to update the
presentation of a field.setFeatureAttributeEmulator in interface EditableFeatureAttributeDescriptorfeatureAttributeEmulator - the FeatureAttributeEmulator to set.public EditableFeatureAttributeDescriptor setGeometryType(int type)
EditableFeatureAttributeDescriptorsetGeometryType in interface EditableFeatureAttributeDescriptorpublic EditableFeatureAttributeDescriptor setGeometrySubType(int subType)
EditableFeatureAttributeDescriptorsetGeometrySubType in interface EditableFeatureAttributeDescriptorpublic EditableFeatureAttributeDescriptor setGeometryType(GeometryType geometryType)
EditableFeatureAttributeDescriptorsetGeometryType in interface EditableFeatureAttributeDescriptorpublic EditableFeatureAttributeDescriptor setGeometryType(int type, int subType)
setGeometryType in interface EditableFeatureAttributeDescriptorpublic EditableFeatureAttributeDescriptor setIsPrimaryKey(boolean isPrimaryKey)
EditableFeatureAttributeDescriptorsetIsPrimaryKey in interface EditableFeatureAttributeDescriptorisPrimaryKey - true if is part of the primary keypublic EditableFeatureAttributeDescriptor setIsReadOnly(boolean isReadOnly)
EditableFeatureAttributeDescriptorsetIsReadOnly in interface EditableFeatureAttributeDescriptorpublic EditableFeatureAttributeDescriptor setMaximumOccurrences(int maximumOccurrences)
EditableFeatureAttributeDescriptorsetMaximumOccurrences in interface EditableFeatureAttributeDescriptorpublic EditableFeatureAttributeDescriptor setMinimumOccurrences(int minimumOccurrences)
EditableFeatureAttributeDescriptorsetMinimumOccurrences in interface EditableFeatureAttributeDescriptorpublic EditableFeatureAttributeDescriptor setName(String name)
EditableFeatureAttributeDescriptorsetName in interface EditableFeatureAttributeDescriptorname - to setpublic String getOriginalName()
EditableFeatureAttributeDescriptorgetOriginalName in interface EditableFeatureAttributeDescriptorpublic EditableFeatureAttributeDescriptor setObjectClass(Class theClass)
EditableFeatureAttributeDescriptorsetObjectClass in interface EditableFeatureAttributeDescriptortheClass - Class to which the related FeatureAttribute can be castpublic EditableFeatureAttributeDescriptor setPrecision(int precision)
EditableFeatureAttributeDescriptorsetPrecision in interface EditableFeatureAttributeDescriptorprecision - of type intpublic EditableFeatureAttributeDescriptor setSRS(IProjection SRS)
EditableFeatureAttributeDescriptorsetSRS in interface EditableFeatureAttributeDescriptorpublic EditableFeatureAttributeDescriptor setSize(int size)
EditableFeatureAttributeDescriptorsetSize in interface EditableFeatureAttributeDescriptorsize - a size of type intpublic boolean hasStrongChanges()
public EditableFeatureAttributeDescriptor setAdditionalInfo(String infoName, Object value)
EditableFeatureAttributeDescriptorsetAdditionalInfo in interface EditableFeatureAttributeDescriptorpublic EditableFeatureAttributeDescriptor setIsAutomatic(boolean isAutomatic)
EditableFeatureAttributeDescriptorsetIsAutomatic in interface EditableFeatureAttributeDescriptorpublic EditableFeatureAttributeDescriptor setIsTime(boolean isTime)
EditableFeatureAttributeDescriptorsetIsTime in interface EditableFeatureAttributeDescriptorisTime - true if the attribute is temporalpublic EditableFeatureAttributeDescriptor setDateFormat(DateFormat dateFormat)
EditableFeatureAttributeDescriptorsetDateFormat in interface EditableFeatureAttributeDescriptorpublic EditableFeatureAttributeDescriptor setIsIndexed(boolean isIndexed)
EditableFeatureAttributeDescriptorsetIsIndexed in interface EditableFeatureAttributeDescriptorpublic EditableFeatureAttributeDescriptor setAllowIndexDuplicateds(boolean allowDuplicateds)
setAllowIndexDuplicateds in interface EditableFeatureAttributeDescriptorpublic EditableFeatureAttributeDescriptor setIsIndexAscending(boolean ascending)
setIsIndexAscending in interface EditableFeatureAttributeDescriptor