public interface IAttributeDefinition extends Serializable
IGeometryAttributeDefinition is an extension to this interface that contains
additional properties of an attribute that contains geometry values. If the attribute
data type is AttributeType.FEATURE_GEOMETRY, then the attribute definition
also implements the IGeometryAttributeDefinition interface.
Eventually there will be IFeatureAttributeDefinition for feature/feature collections,
IRasterAttributeDefinition for raster/grid, and ITextAttributeDefinition for the new TEXT type.
Maybe also IXmlAttributeDefinition?| Modifier and Type | Method and Description |
|---|---|
Metadata |
getDataSourceAttributeMetadata()
Provides a data storage-specific definition of this attribute.
|
AttributeType |
getDataType()
Indicates the data type of the attribute.
|
int |
getDecimals()
Indicates the decimal precision for decimal data types (AttributeType#DBASE_DECIMAL).
|
String |
getName()
Returns the name (or alias) of the attribute.
|
int |
getWidth()
Returns the maximum storage width for width-sensitive data types such as
string, binary, and decimal types.
|
boolean |
isNullable()
Indicates if this attribute allows null values.
|
boolean |
isReadOnly()
Indicates if the values for this property are read only.
|
boolean |
isUnique()
Indicates if the values for this attribute must all be unique within the
context of the containing feature collection or data store.
|
String getName()
AttributeType getDataType()
boolean isNullable()
true if this attribute allows null values;
false otherwise.boolean isUnique()
true if the value must be unique;
false otherwise.int getWidth()
AttributeType.DBASE_DECIMAL), the width refers to the total
width of the field including the negative sign if present and a decimal point.
Thus, an attribute of type DBASE_DECIMAL with a width of 6 and decimal precision
of 1, for example, could store the range of values [-999.9 to 9999.9], inclusive.AttributeType.DBASE_DECIMALint getDecimals()
boolean isReadOnly()
true in situations where the entire feature or feature collection
is read only. An attribute would be flagged as read-only typically in cases where an
underlying data provider exposes pseudo columns or other restrictions on a column-by-column
basis. Attributes identified as read only do not allow a value to be specified when a new
feature is constructed, even if the attribute is also designated as non-nullable. When
the feature is inserted into a feature collection, the specific feature collection
implementation will supply a value for the read only field in the data store.
When new feature collections are created based on existing feature collections,
the read only property should not be applied to the new feature collection.
Refer to the Read Only Properties and
Determination section of the package summary for more comprehensive coverage.true if this attribute specifically denies edits to data values;
false otherwise.Metadata getDataSourceAttributeMetadata()
IAttributeDefinition
interface exposes commonly used attribute properties for the capabilities. This interface does not
attempt to provide a means for exposing all of the unique characteristics of each underlying data provider
such as Oracle, SQL Server, WFS, Microsoft Access, file formats, etc. This property may be used to expose
provider specific information about this attribute.null if no such metadata exists.© 2007, 2022 Precisely. All rights reserved.