public class DefaultEditableFeatureAttributeDescriptor extends DefaultFeatureAttributeDescriptor implements EditableFeatureAttributeDescriptor
DynField_v2.AvailableValuesProvider
additionalInfo, allowIndexDuplicateds, allowNull, availableValues, availableValuesCache, availableValuesExpression, avoidCachingAvailableValues, coerceContext, dataProfile, dataType, dateFormat, defaultFormat, defaultValue, description, displaySize, evaluator, featureAttributeEmulator, featureAttributeGetter, fixed, foreingKey, geometrySubType, geometryType, geomType, groupName, hidden, index, indexed, interval, isAutomatic, isIndexAscending, isTime, label, locale, LOGGER, mathContext, maximumOccurrences, maxValue, minimumOccurrences, minValue, name, NOTIFICATION_FIXED_CHANGED, objectClass, observableHelper, order, precision, primaryKey, readOnly, roundMode, scale, shortLabel, size, SRS, tags
ANY, CHOICE, RANGE, RELATION_TYPE_AGGREGATE, RELATION_TYPE_AGGREGATE_WITH_COMPOSITION, RELATION_TYPE_COLLABORATION, RELATION_TYPE_COLLABORATION_WITH_COMPOSITION, RELATION_TYPE_COMPOSITION, RELATION_TYPE_IDENTITY, RELATION_TYPE_NONE
Modifier | Constructor and Description |
---|---|
protected |
DefaultEditableFeatureAttributeDescriptor(DefaultFeatureAttributeDescriptor other) |
|
DefaultEditableFeatureAttributeDescriptor(FeatureType type,
boolean strongChanges) |
Modifier and Type | Method and Description |
---|---|
void |
checkIntegrity()
Checks attribute integrity
|
void |
fixAll() |
EditableForeingKey |
getForeingKey() |
java.lang.String |
getOriginalName()
Returns the attribute descriptor's name before it was changed or null if
never changed
|
DefaultFeatureAttributeDescriptor |
getSource() |
boolean |
hasStrongChanges() |
static void |
selfRegister() |
EditableFeatureAttributeDescriptor |
set(java.lang.String name,
java.lang.Object value) |
EditableFeatureAttributeDescriptor |
setAdditionalInfo(java.lang.String infoName,
java.lang.Object value) |
EditableFeatureAttributeDescriptor |
setAdditionalInfo(java.lang.String infoName,
java.lang.String 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 |
setAvailableValuesFilter(Expression filter) |
EditableFeatureAttributeDescriptor |
setAvailableValuesFilter(java.lang.String filter) |
EditableFeatureAttributeDescriptor |
setAvoidCachingAvailableValues(boolean avoidCachingAvailableValues) |
EditableFeatureAttributeDescriptor |
setDataProfileName(java.lang.String dataProfile) |
EditableFeatureAttributeDescriptor |
setDataType(DataType dataType) |
EditableFeatureAttributeDescriptor |
setDataType(int type)
Sets the data type
|
EditableFeatureAttributeDescriptor |
setDateFormat(java.text.DateFormat dateFormat)
If this attribute is of type Date, then this method set the date format
set by the data store.
|
EditableFeatureAttributeDescriptor |
setDefaultFieldValue(java.lang.Object defaultValue)
Set the default value used for this field when a new object with this
field is created.
|
EditableFeatureAttributeDescriptor |
setDefaultFormat(java.lang.String format) |
EditableFeatureAttributeDescriptor |
setDefaultValue(java.lang.Object defaultValue)
Sets the default value
|
EditableFeatureAttributeDescriptor |
setDisplaySize(int size)
Set the required bytes to store this attribute.
|
EditableFeatureAttributeDescriptor |
setEvaluator(Evaluator evaluator)
Sets the expression evaluator that the FeatureAttribute will use
|
EditableFeatureAttributeDescriptor |
setFeatureAttributeEmulator(Expression expression) |
EditableFeatureAttributeDescriptor |
setFeatureAttributeEmulator(FeatureAttributeEmulator featureAttributeEmulator)
Sets the
FeatureAttributeEmulator that is used to update the
presentation of a field. |
EditableFeatureAttributeDescriptor |
setFeatureAttributeEmulator(java.lang.String expression) |
EditableFeatureAttributeDescriptor |
setForeingkey(boolean isForeingkey,
boolean isClosedList,
java.lang.String tableName,
java.lang.String codeName,
java.lang.String labelFormula) |
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 |
setGeometryType(java.lang.String geometryType)
Sets the geometry type and subtype.
|
EditableFeatureAttributeDescriptor |
setInterval(Interval interval) |
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 |
setLocale(java.util.Locale locale) |
EditableFeatureAttributeDescriptor |
setLocale(java.lang.String locale) |
EditableFeatureAttributeDescriptor |
setMaximumOccurrences(int maximumOccurrences)
Sets the maximum number of occurrences
|
EditableFeatureAttributeDescriptor |
setMinimumOccurrences(int minimumOccurrences)
Sets the number of minimum occurrences
|
EditableFeatureAttributeDescriptor |
setName(java.lang.String name)
Sets the name
|
EditableFeatureAttributeDescriptor |
setObjectClass(java.lang.Class theClass)
Sets the Class to which the related FeatureAttribute can be cast
|
EditableFeatureAttributeDescriptor |
setPrecision(int precision)
Sets the precision
|
EditableFeatureAttributeDescriptor |
setRoundMode(int roundMode) |
EditableFeatureAttributeDescriptor |
setScale(int scale) |
EditableFeatureAttributeDescriptor |
setSize(int size)
Sets the size.
|
EditableFeatureAttributeDescriptor |
setSRS(IProjection SRS)
Sets the SRS.
|
EditableFeatureAttributeDescriptor |
setSRS(java.lang.String SRS) |
EditableFeatureAttributeDescriptor |
setTag(java.lang.String name,
java.lang.Object value) |
addObserver, allowIndexDuplicateds, allowNull, clone, coerce, copyFrom, deleteObserver, deleteObservers, equals, format, fromJson, get, getAdditionalInfo, getAvailableValues, getAvailableValues, getAvailableValuesExpression, getAvailableValuesFilter, getAvailableValuesMethod, getCalculatedValue, getCalculateMethod, getClassNameOfItems, getClassNameOfValue, getClassOfItems, getClassOfValue, getCoercedDefaultValue, getCoercion, getCoercionContext, getCopy, getDataProfile, getDataProfileName, getDataType, getDataTypeName, getDateFormat, getDefaultFormat, getDefaultValue, getDefaultValueCoerced, getDefaultValueSupplier, getDescription, getDisplaySize, getDynClassOfItems, getDynClassOfValue, getElementsType, getEvaluator, getFeatureAttributeEmulator, getFeatureAttributeGetter, getFeatureType, getGeometrySubType, getGeometryType, getGeomType, getGroup, getIndex, getInterval, getLabel, getLabelOfValue, getLocale, getLocalizedLabel, getLocalizedShortLabel, getMathContext, getMaximumOccurrences, getMaxValue, getMinimumOccurrences, getMinValue, getName, getObjectClass, getOder, getPrecision, getRelationType, getRequiredFieldNames, getRoundMode, getScale, getShortLabel, getSize, getSRS, getSRS, getStore, getSubtype, getTags, getTheTypeOfAvailableValues, getType, getTypeOfItems, getValidateElements, getValue, hasAvailableValues, hasConstantAvailableValues, hasDataProfile, hasDescription, hasLabel, hasOnlyMetadataChanges, hasShortLabel, isAutomatic, isAvailableValuesCalculated, isAvoidCachingAvailableValues, isCalculated, isComputed, isContainer, isFixed, isForeingKey, isHidden, isInAvailableValues, isIndexAscending, isIndexed, isMandatory, isPersistent, isPrimaryKey, isReadOnly, isTime, loadFromState, recentUsed, registerPersistenceDefinition, saveToState, setAvailableValues, setAvailableValues, setAvailableValues, setAvailableValuesExpression, setAvailableValuesExpression, setCalculateMethod, setClassOfItems, setClassOfItems, setClassOfItems, setClassOfValue, setClassOfValue, setClassOfValue, setConstantValue, setDefaultDynValue, setDefaultValueSupplier, setDescription, setElementsType, setElementsType, setFeatureAttributeGetter, setFeatureType, setFixed, setGroup, setHidden, setIndex, setLabel, setMandatory, setMaxValue, setMinValue, setOrder, setPersistent, setReadOnly, setRelationType, setShortLabel, setSRSForced, setSubtype, setTheTypeOfAvailableValues, setType, setType, setTypeOfItems, setValidateElements, toJson, toJsonBuilder, toString, validate
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
allowIndexDuplicateds, allowNull, format, get, getAdditionalInfo, getAvailableValuesExpression, getAvailableValuesFilter, getCoercion, getCoercionContext, getCopy, getDataProfile, getDataProfileName, getDataTypeName, getDateFormat, getDefaultFormat, getDefaultValueCoerced, getDisplaySize, getEvaluator, getFeatureAttributeEmulator, getFeatureAttributeGetter, getFeatureType, getGeometrySubType, getGeometryType, getGeomType, getIndex, getInterval, getLabelOfValue, getLocale, getLocalizedLabel, getLocalizedShortLabel, getMathContext, getMaximumOccurrences, getMinimumOccurrences, getObjectClass, getPrecision, getRequiredFieldNames, getRoundMode, getScale, getSize, getSRS, getStore, hasAvailableValues, hasConstantAvailableValues, hasDataProfile, hasDescription, hasLabel, hasOnlyMetadataChanges, hasShortLabel, isAutomatic, isAvoidCachingAvailableValues, isComputed, isForeingKey, isInAvailableValues, isIndexAscending, isIndexed, isPrimaryKey, isTime, recentUsed, setAvailableValuesExpression, setAvailableValuesExpression, setFeatureAttributeGetter
copyFrom, getAvailableValues, getAvailableValuesMethod, getCalculatedValue, getCalculateMethod, getClassNameOfItems, getClassNameOfValue, getClassOfItems, getCoercedDefaultValue, getDefaultValueSupplier, getDynClassOfItems, getDynClassOfValue, getRelationType, getTags, getTypeOfItems, getValidateElements, isAvailableValuesCalculated, isCalculated, setAvailableValues, setCalculateMethod, setClassOfItems, setClassOfItems, setClassOfItems, setClassOfValue, setClassOfValue, setDefaultValueSupplier, setRelationType, setTypeOfItems, setValidateElements
getLabel, getShortLabel, setLabel, setShortLabel
coerce, getAvailableValues, getClassOfValue, getDataType, getDefaultValue, getDescription, getElementsType, getGroup, getMaxValue, getMinValue, getName, getOder, getSubtype, getTheTypeOfAvailableValues, getType, isContainer, isHidden, isMandatory, isPersistent, isReadOnly, setAvailableValues, setAvailableValues, setClassOfValue, setDefaultDynValue, setDescription, setElementsType, setElementsType, setGroup, setHidden, setMandatory, setMaxValue, setMinValue, setOrder, setPersistent, setReadOnly, setSubtype, setTheTypeOfAvailableValues, setType, setType, validate
clone, cloneQuietly, cloneQuietly
getLabel, getValue, label, toString
loadFromState, saveToState
toJson, toJson, toJsonBuilder, toJsonBuilder
fromJson
protected DefaultEditableFeatureAttributeDescriptor(DefaultFeatureAttributeDescriptor other)
public DefaultEditableFeatureAttributeDescriptor(FeatureType type, boolean strongChanges)
public DefaultFeatureAttributeDescriptor getSource()
public void fixAll()
fixAll
in class DefaultFeatureAttributeDescriptor
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 EditableForeingKey getForeingKey()
getForeingKey
in interface EditableFeatureAttributeDescriptor
getForeingKey
in interface FeatureAttributeDescriptor
getForeingKey
in class DefaultFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setDataType(DataType dataType)
setDataType
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setDataType(int type)
EditableFeatureAttributeDescriptor
setDataType
in interface EditableFeatureAttributeDescriptor
setDataType
in class DefaultFeatureAttributeDescriptor
type
- one of the constants defined in DataTypes
public EditableFeatureAttributeDescriptor setDefaultValue(java.lang.Object defaultValue)
EditableFeatureAttributeDescriptor
setDefaultValue
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setDefaultFieldValue(java.lang.Object defaultValue)
DynField
setDefaultFieldValue
in interface DynField
setDefaultFieldValue
in class DefaultFeatureAttributeDescriptor
DynField
objectpublic EditableFeatureAttributeDescriptor setAvoidCachingAvailableValues(boolean avoidCachingAvailableValues)
setAvoidCachingAvailableValues
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
setFeatureAttributeEmulator
in class DefaultFeatureAttributeDescriptor
featureAttributeEmulator
- the FeatureAttributeEmulator
to
set.public EditableFeatureAttributeDescriptor setFeatureAttributeEmulator(Expression expression)
setFeatureAttributeEmulator
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setFeatureAttributeEmulator(java.lang.String expression)
setFeatureAttributeEmulator
in interface EditableFeatureAttributeDescriptor
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(java.lang.String geometryType)
EditableFeatureAttributeDescriptor
{geometryType}{sep}[geometrySubtype}
where:
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(java.lang.String name)
EditableFeatureAttributeDescriptor
setName
in interface EditableFeatureAttributeDescriptor
setName
in class DefaultFeatureAttributeDescriptor
name
- to setpublic java.lang.String getOriginalName()
EditableFeatureAttributeDescriptor
getOriginalName
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setObjectClass(java.lang.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 setScale(int scale)
setScale
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setSRS(IProjection SRS)
EditableFeatureAttributeDescriptor
setSRS
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setSRS(java.lang.String SRS)
setSRS
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setInterval(Interval interval)
setInterval
in interface EditableFeatureAttributeDescriptor
setInterval
in class DefaultFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setSize(int size)
EditableFeatureAttributeDescriptor
setSize
in interface EditableFeatureAttributeDescriptor
size
- a size of type intpublic boolean hasStrongChanges()
public EditableFeatureAttributeDescriptor setAdditionalInfo(java.lang.String infoName, java.lang.Object value)
setAdditionalInfo
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setAdditionalInfo(java.lang.String infoName, java.lang.String value)
EditableFeatureAttributeDescriptor
setAdditionalInfo
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setIsAutomatic(boolean isAutomatic)
EditableFeatureAttributeDescriptor
setIsAutomatic
in interface EditableFeatureAttributeDescriptor
isAutomatic
- true if is part of the primary keypublic EditableFeatureAttributeDescriptor setIsTime(boolean isTime)
EditableFeatureAttributeDescriptor
setIsTime
in interface EditableFeatureAttributeDescriptor
isTime
- true
if the attribute is temporalpublic EditableFeatureAttributeDescriptor setDateFormat(java.text.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
public EditableFeatureAttributeDescriptor setDataProfileName(java.lang.String dataProfile)
setDataProfileName
in interface EditableFeatureAttributeDescriptor
setDataProfileName
in class DefaultFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setLocale(java.util.Locale locale)
setLocale
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setLocale(java.lang.String locale)
public EditableFeatureAttributeDescriptor setRoundMode(int roundMode)
setRoundMode
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor set(java.lang.String name, java.lang.Object value)
set
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setDisplaySize(int size)
EditableFeatureAttributeDescriptor
setDisplaySize
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setAvailableValuesFilter(Expression filter)
setAvailableValuesFilter
in interface EditableFeatureAttributeDescriptor
setAvailableValuesFilter
in class DefaultFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setAvailableValuesFilter(java.lang.String filter)
setAvailableValuesFilter
in class DefaultFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setForeingkey(boolean isForeingkey, boolean isClosedList, java.lang.String tableName, java.lang.String codeName, java.lang.String labelFormula)
setForeingkey
in interface EditableFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor setTag(java.lang.String name, java.lang.Object value)
setTag
in interface EditableFeatureAttributeDescriptor
public static void selfRegister()
public EditableFeatureAttributeDescriptor setDefaultFormat(java.lang.String format)
setDefaultFormat
in interface EditableFeatureAttributeDescriptor