public interface IFeature extends Serializable
IFeature.isNull(int) is true, other attribute getters with throw an exception so it is advisable to
always call IFeature.isNull(int) before getting an attribute value.
A typical pattern for using an IFeature is as follows:
// this assumes there is a getFeature() method returning an IFeature
IFeature feature = getFeature();
for (IAttributeDefinition def : feature.getMetadata().getAttributeDefinitions()) {
String attrName = def.getName();
if (feature.isNull(attrName)) {
// do something
} else {
switch (def.getDataType()) {
case BOOLEAN:
boolean boolVal = feature.getBoolean(attrName);
// do something
break;
case INTEGER:
int intVal = feature.getInt(attrName);
// do something
break;
// ...
}
}
}
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBinary(int index)
Gets the value of the specified attribute.
|
byte[] |
getBinary(String name)
Gets the value of the specified attribute.
|
boolean |
getBoolean(int index)
Gets the value of the specified attribute.
|
boolean |
getBoolean(String name)
Gets the value of the specified attribute.
|
byte |
getByte(int index)
Gets the value of the specified attribute.
|
byte |
getByte(String name)
Gets the value of the specified attribute.
|
char |
getChar(int index)
Gets the value of the specified attribute.
|
char |
getChar(String name)
Gets the value of the specified attribute.
|
IFeature |
getCopy()
Get a (permanent) copy of this IFeature.
|
MIDate |
getDate(int index)
Gets the value of the specified attribute.
|
MIDate |
getDate(String name)
Gets the value of the specified attribute.
|
MIDateTime |
getDateTime(int index)
Gets the value of the specified attribute.
|
MIDateTime |
getDateTime(String name)
Gets the value of the specified attribute.
|
MIDateTimeZone |
getDateTimeZone(int index)
Gets the value of the specified attribute.
|
MIDateTimeZone |
getDateTimeZone(String name)
Gets the value of the specified attribute.
|
String |
getDescription()
Contains a textual description of the feature.
|
double |
getDouble(int index)
Gets the value of the specified attribute.
|
double |
getDouble(String name)
Gets the value of the specified attribute.
|
IFeature |
getFeature(int index)
Gets the value of the specified attribute.
|
IFeature |
getFeature(String name)
Gets the value of the specified attribute.
|
IFeatureCollection |
getFeatureCollection(int index)
Gets the value of the specified attribute.
|
IFeatureCollection |
getFeatureCollection(String name)
Gets the value of the specified attribute.
|
IFeatureGeometry |
getFeatureGeometry(int index)
Gets the value of the specified attribute.
|
IFeatureGeometry |
getFeatureGeometry(String name)
Gets the value of the specified attribute.
|
float |
getFloat(int index)
Gets the value of the specified attribute.
|
float |
getFloat(String name)
Gets the value of the specified attribute.
|
int |
getInt(int index)
Gets the value of the specified attribute.
|
int |
getInt(String name)
Gets the value of the specified attribute.
|
IKey |
getKey()
Returns the primary key that represents this IFeature.
|
long |
getLong(int index)
Gets the value of the specified attribute.
|
long |
getLong(String name)
Gets the value of the specified attribute.
|
IFeatureMetadata |
getMetadata()
Accesses the metadata that describes this
IFeature. |
IMultiFeatureCollection |
getMultiFeatureCollection(int index)
Gets the value of the specified attribute.
|
IMultiFeatureCollection |
getMultiFeatureCollection(String name)
Gets the value of the specified attribute.
|
Collection |
getNames()
A collection of names used to identify the feature.
|
IRasterDataset |
getRasterDataset(int index)
Gets the value of the specified attribute.
|
IRasterDataset |
getRasterDataset(String name)
Gets the value of the specified attribute.
|
short |
getShort(int index)
Gets the value of the specified attribute.
|
short |
getShort(String name)
Gets the value of the specified attribute.
|
String |
getString(int index)
Gets the value of the specified attribute.
|
String |
getString(String name)
Gets the value of the specified attribute.
|
IStyle |
getStyle(int index)
Gets the value of the specified attribute.
|
IStyle |
getStyle(String name)
Gets the value of the specified attribute.
|
MITime |
getTime(int index)
Gets the value of the specified attribute.
|
MITime |
getTime(String name)
Gets the value of the specified attribute.
|
MITimespan |
getTimespan(int index)
Gets the value of the specified attribute.
|
MITimespan |
getTimespan(String name)
Gets the value of the specified attribute.
|
boolean |
isNull(int index)
Indicates if the value of the specified attribute is null.
|
boolean |
isNull(String name)
Indicates if the value of the specified attribute is null.
|
boolean |
isReadOnly()
Indicates if the attribute values for this feature are read only.
|
boolean |
isTransient()
Indicates if this
IFeature is transient. |
void |
setBinary(int index,
byte[] value)
Sets the value of the specified attribute.
|
void |
setBinary(String name,
byte[] value)
Sets the value of the specified attribute.
|
void |
setBoolean(int index,
boolean value)
Sets the value of the specified attribute.
|
void |
setBoolean(String name,
boolean value)
Sets the value of the specified attribute.
|
void |
setByte(int index,
byte value)
Sets the value of the specified attribute.
|
void |
setByte(String name,
byte value)
Sets the value of the specified attribute.
|
void |
setChar(int index,
char value)
Sets the value of the specified attribute.
|
void |
setChar(String name,
char value)
Sets the value of the specified attribute.
|
void |
setDate(int index,
MIDate value)
Sets the value of the specified attribute.
|
void |
setDate(String name,
MIDate value)
Sets the value of the specified attribute.
|
void |
setDateTime(int index,
MIDateTime value)
Sets the value of the specified attribute.
|
void |
setDateTime(String name,
MIDateTime value)
Sets the value of the specified attribute.
|
void |
setDateTimeZone(int index,
MIDateTimeZone value)
Sets the value of the specified attribute.
|
void |
setDateTimeZone(String name,
MIDateTimeZone value)
Sets the value of the specified attribute.
|
void |
setDouble(int index,
double value)
Sets the value of the specified attribute.
|
void |
setDouble(String name,
double value)
Sets the value of the specified attribute.
|
void |
setFeature(int index,
IFeature value)
Sets the value of the specified attribute.
|
void |
setFeature(String name,
IFeature value)
Sets the value of the specified attribute.
|
void |
setFeatureCollection(int index,
IFeatureCollection value)
Sets the value of the specified attribute.
|
void |
setFeatureCollection(String name,
IFeatureCollection value)
Sets the value of the specified attribute.
|
void |
setFeatureGeometry(int index,
IFeatureGeometry value)
Sets the value of the specified attribute.
|
void |
setFeatureGeometry(String name,
IFeatureGeometry value)
Sets the value of the specified attribute.
|
void |
setFloat(int index,
float value)
Sets the value of the specified attribute.
|
void |
setFloat(String name,
float value)
Sets the value of the specified attribute.
|
void |
setInt(int index,
int value)
Sets the value of the specified attribute.
|
void |
setInt(String name,
int value)
Sets the value of the specified attribute.
|
void |
setLong(int index,
long value)
Sets the value of the specified attribute.
|
void |
setLong(String name,
long value)
Sets the value of the specified attribute.
|
void |
setMultiFeatureCollection(int index,
IMultiFeatureCollection value)
Sets the value of the specified attribute.
|
void |
setMultiFeatureCollection(String name,
IMultiFeatureCollection value)
Sets the value of the specified attribute.
|
void |
setNull(int index)
Sets the value of the specified attribute to
null. |
void |
setNull(String name)
Sets the value of the specified attribute to
null. |
void |
setRasterDataset(int index,
IRasterDataset value)
Sets the value of the specified attribute.
|
void |
setRasterDataset(String name,
IRasterDataset value)
Sets the value of the specified attribute.
|
void |
setShort(int index,
short value)
Sets the value of the specified attribute.
|
void |
setShort(String name,
short value)
Sets the value of the specified attribute.
|
void |
setString(int index,
String value)
Sets the value of the specified attribute.
|
void |
setString(String name,
String value)
Sets the value of the specified attribute.
|
void |
setStyle(int index,
IStyle value)
Sets the value of the specified attribute.
|
void |
setStyle(String name,
IStyle value)
Sets the value of the specified attribute.
|
void |
setTime(int index,
MITime value)
Sets the value of the specified attribute.
|
void |
setTime(String name,
MITime value)
Sets the value of the specified attribute.
|
void |
setTimespan(int index,
MITimespan value)
Sets the value of the specified attribute.
|
void |
setTimespan(String name,
MITimespan value)
Sets the value of the specified attribute.
|
IFeatureMetadata getMetadata()
IFeature. The
metadata defines the attributes that this feature contains.IFeatureMetadata which describes this feature.Collection getNames()
Strings containing the names. The value may be
an empty collection if no names are defined but will not return null.String getDescription()
boolean isTransient()
IFeature is transient. An instance of
IFeature may have a lifetime that is controlled by an
iterator, cursor, or other entity. A typical occurrence of transient features
occurs when searching a database table. The feature iterator used to return the
data in the resultset returns IFeature instances whose data is connected
to the memory of the cursor. When the next feature is accessed, the same memory is
reused, thus making the previous feature invalid. These features are said to be
transient.
There is no guarantee that repositioning a cursor returns the same
feature each time, however, even if different feature instances are returned, the previous
feature instance should be assumed to be invalid and cannot be accessed.
Transient does not have any relationship to the editability of the data. Features,
feature collections, and tables may be edited even if they are designated as transient.
Transient simply refers to the lifetime of the IFeature and whether
or not its memory may be reclaimed or reused as the result of some other action such as
advancing an iterator or cursor.true if this feature is transient; false otherwise.boolean isReadOnly()
true if this feature specifically denies edits to attribute values;
false otherwise.IFeature getCopy()
FeatureCopyUtilities.newFeature(IFeature),
IFeature.isTransient()IKey getKey()
boolean isNull(int index)
getString and getInt will
throw an exception if the value for the attribute is null. Users should first
check for null values using this method.index - the index of the attribute to access.true if the value for the attribute is null; false otherwise.boolean isNull(String name)
getString and getInt will
throw an exception if the value for the attribute is null. Users should first
check for null values using this method.name - the name of the attribute to access.true if the value for the attribute is null; false otherwise.IllegalArgumentException - if an attribute with the specified name is not found.boolean getBoolean(int index)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.index - the index of the attribute to access.InconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)boolean getBoolean(String name)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.name - the name of the attribute to access.IllegalArgumentException - if an attribute with the specified name is not foundInconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)int getInt(int index)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.index - the index of the attribute to access.InconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)int getInt(String name)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.name - the name of the attribute to access.IllegalArgumentException - if an attribute with the specified name is not foundInconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)short getShort(int index)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.index - the index of the attribute to access.InconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)short getShort(String name)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.name - the name of the attribute to access.IllegalArgumentException - if an attribute with the specified name is not foundInconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)long getLong(int index)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.index - the index of the attribute to access.InconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)long getLong(String name)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.name - the name of the attribute to access.IllegalArgumentException - if an attribute with the specified name is not foundInconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)float getFloat(int index)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.index - the index of the attribute to access.InconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)float getFloat(String name)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.name - the name of the attribute to access.IllegalArgumentException - if an attribute with the specified name is not foundInconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)double getDouble(int index)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.index - the index of the attribute to access.InconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)double getDouble(String name)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.name - the name of the attribute to access.IllegalArgumentException - if an attribute with the specified name is not foundInconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)String getString(int index)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.index - the index of the attribute to access.InconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)String getString(String name)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.name - the name of the attribute to access.IllegalArgumentException - if an attribute with the specified name is not foundInconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)MIDate getDate(int index)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.index - the index of the attribute to access.InconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)MIDate getDate(String name)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.name - the name of the attribute to access.IllegalArgumentException - if an attribute with the specified name is not foundInconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)MIDateTime getDateTime(int index)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.index - the index of the attribute to access.InconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)MIDateTime getDateTime(String name)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.name - the name of the attribute to access.IllegalArgumentException - if an attribute with the specified name is not foundInconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)MITime getTime(int index)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.index - the index of the attribute to access.InconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)MITime getTime(String name)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.name - the name of the attribute to access.IllegalArgumentException - if an attribute with the specified name is not foundInconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)MIDateTimeZone getDateTimeZone(int index)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.index - the index of the attribute to access.InconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)MIDateTimeZone getDateTimeZone(String name)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.name - the name of the attribute to access.IllegalArgumentException - if an attribute with the specified name is not foundInconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)MITimespan getTimespan(int index)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.index - the index of the attribute to access.InconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)MITimespan getTimespan(String name)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.name - the name of the attribute to access.IllegalArgumentException - if an attribute with the specified name is not foundInconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)IFeatureGeometry getFeatureGeometry(int index)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.index - the index of the attribute to access.InconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)IFeatureGeometry getFeatureGeometry(String name)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.name - the name of the attribute to access.IllegalArgumentException - if an attribute with the specified name is not foundInconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)IStyle getStyle(int index)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.index - the index of the attribute to access.InconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)IStyle getStyle(String name)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.name - the name of the attribute to access.IllegalArgumentException - if an attribute with the specified name is not foundInconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)char getChar(int index)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.index - the index of the attribute to access.InconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)char getChar(String name)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.name - the name of the attribute to access.IllegalArgumentException - if an attribute with the specified name is not foundInconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)byte getByte(int index)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.index - the index of the attribute to access.InconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)byte getByte(String name)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.name - the name of the attribute to access.IllegalArgumentException - if an attribute with the specified name is not foundInconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)byte[] getBinary(int index)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.index - the index of the attribute to access.InconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)byte[] getBinary(String name)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.name - the name of the attribute to access.IllegalArgumentException - if an attribute with the specified name is not foundInconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)IRasterDataset getRasterDataset(int index)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.index - the index of the attribute to access.InconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)IRasterDataset getRasterDataset(String name)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.name - the name of the attribute to access.IllegalArgumentException - if an attribute with the specified name is not foundInconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)IFeature getFeature(int index)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.
todo:
Include a section at the top of this interface or maybe in the Feature Package
level docs about type extensibility and refer to that here....
index - the index of the attribute to access.InconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)IFeature getFeature(String name)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.
todo:
Include a section at the top of this interface or maybe in the Feature Package
level docs about type extensibility and refer to that here....
name - the name of the attribute to access.IllegalArgumentException - if an attribute with the specified name is not foundInconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)IFeatureCollection getFeatureCollection(int index)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.
todo:
Include a section at the top of this interface or maybe in the Feature Package
level docs about type extensibility and refer to that here....
index - the index of the attribute to access.InconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)IFeatureCollection getFeatureCollection(String name)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.
todo:
Include a section at the top of this interface or maybe in the Feature Package
level docs about type extensibility and refer to that here....
name - the name of the attribute to access.IllegalArgumentException - if an attribute with the specified name is not foundInconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)IMultiFeatureCollection getMultiFeatureCollection(int index)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.
todo:
Include a section at the top of this interface or maybe in the Feature Package
level docs about type extensibility and refer to that here....
index - the index of the attribute to access.InconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)IMultiFeatureCollection getMultiFeatureCollection(String name)
null, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.
todo:
Include a section at the top of this interface or maybe in the Feature Package
level docs about type extensibility and refer to that here....
name - the name of the attribute to access.IllegalArgumentException - if an attribute with the specified name is not foundInconvertableTypeException - if the attribute is not of the expected typeIllegalStateException - if the value for this attribute is null.IFeature.isNull(int)void setNull(int index)
null. Attributes
do not represent null using a value within the domain of the attribute type.
For example, a string attribute is not set to null by calling setString
and passing in a null string reference for the value. This will generate an exception.
To set a value to null, use the setNull method.index - the index of the attribute to modify.IllegalStateException - If this attribute is not nullable.void setNull(String name) throws IllegalStateException
null. Attributes
do not represent null using a value within the domain of the attribute type.
For example, a string attribute is not set to null by calling setString
and passing in a null string reference for the value. This will generate an exception.
To set a value to null, use the setNull method.name - the name of the attribute to modify.IllegalStateException - if an attribute with the specified name is not found, or if it is not nullable.void setBoolean(int index,
boolean value)
index - the index of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if the attribute is not of the expected typevoid setBoolean(String name, boolean value) throws InconvertableTypeException
name - the name of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if an attribute with the specified name is not found, or if it is not of the
expected type.void setInt(int index,
int value)
throws InconvertableTypeException
index - the index of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if the attribute at the specified index is not of the expected type.void setInt(String name, int value) throws InconvertableTypeException
name - the name of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if an attribute with the specified name is not found, or if it is not of the
expected type.void setShort(int index,
short value)
throws InconvertableTypeException
index - the index of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if the attribute at the specified index is not of the expected type.void setShort(String name, short value) throws InconvertableTypeException
name - the name of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if an attribute with the specified name is not found, or if it is not of the
expected type.void setLong(int index,
long value)
throws InconvertableTypeException
index - the index of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if the attribute at the specified index is not of the expected type.void setLong(String name, long value) throws InconvertableTypeException
name - the name of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if an attribute with the specified name is not found, or if it is not of the
expected type.void setFloat(int index,
float value)
throws InconvertableTypeException
index - the index of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if the attribute at the specified index is not of the expected type.void setFloat(String name, float value) throws InconvertableTypeException
name - the name of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if an attribute with the specified name is not found, or if it is not of the
expected type.void setDouble(int index,
double value)
throws InconvertableTypeException
index - the index of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if the attribute at the specified index is not of the expected type.void setDouble(String name, double value) throws InconvertableTypeException
name - the name of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if an attribute with the specified name is not found, or if it is not of the
expected type.void setString(int index,
String value)
throws InconvertableTypeException
index - the index of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if the attribute at the specified index is not of the expected type.void setString(String name, String value) throws InconvertableTypeException
name - the name of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if an attribute with the specified name is not found, or if it is not of the
expected type.void setFeatureGeometry(int index,
IFeatureGeometry value)
throws InconvertableTypeException
index - the index of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if the attribute at the specified index is not of the expected type.void setFeatureGeometry(String name, IFeatureGeometry value) throws InconvertableTypeException
name - the name of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if an attribute with the specified name is not found, or if it is not of the
expected type.void setStyle(int index,
IStyle value)
throws InconvertableTypeException
index - the index of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if the attribute at the specified index is not of the expected type.void setStyle(String name, IStyle value) throws InconvertableTypeException
name - the name of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if an attribute with the specified name is not found, or if it is not of the
expected type.void setRasterDataset(int index,
IRasterDataset value)
throws InconvertableTypeException
index - the index of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if the attribute at the specified index is not of the expected type.void setRasterDataset(String name, IRasterDataset value) throws InconvertableTypeException
name - the name of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if an attribute with the specified name is not found, or if it is not of the
expected type.void setDate(int index,
MIDate value)
throws InconvertableTypeException
index - the index of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if the attribute at the specified index is not of the expected type.void setDate(String name, MIDate value) throws InconvertableTypeException
name - the name of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if an attribute with the specified name is not found, or if it is not of the
expected type.void setDateTime(int index,
MIDateTime value)
throws InconvertableTypeException
index - the index of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if the attribute at the specified index is not of the expected type.void setDateTime(String name, MIDateTime value) throws InconvertableTypeException
name - the name of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if an attribute with the specified name is not found, or if it is not of the
expected type.void setDateTimeZone(int index,
MIDateTimeZone value)
throws InconvertableTypeException
index - the index of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if the attribute at the specified index is not of the expected type.void setDateTimeZone(String name, MIDateTimeZone value) throws InconvertableTypeException
name - the name of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if an attribute with the specified name is not found, or if it is not of the
expected type.void setTime(int index,
MITime value)
throws InconvertableTypeException
index - the index of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if the attribute at the specified index is not of the expected type.void setTime(String name, MITime value) throws InconvertableTypeException
name - the name of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if an attribute with the specified name is not found, or if it is not of the
expected type.void setTimespan(int index,
MITimespan value)
throws InconvertableTypeException
index - the index of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if the attribute at the specified index is not of the expected type.void setTimespan(String name, MITimespan value) throws InconvertableTypeException
name - the name of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if an attribute with the specified name is not found, or if it is not of the
expected type.void setChar(int index,
char value)
throws InconvertableTypeException
index - the index of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if the attribute at the specified index is not of the expected type.void setChar(String name, char value) throws InconvertableTypeException
name - the name of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if an attribute with the specified name is not found, or if it is not of the
expected type.void setByte(int index,
byte value)
throws InconvertableTypeException
index - the index of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if the attribute at the specified index is not of the expected type.void setByte(String name, byte value) throws InconvertableTypeException
name - the name of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if an attribute with the specified name is not found, or if it is not of the
expected type.void setBinary(int index,
byte[] value)
throws InconvertableTypeException
index - the index of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if the attribute at the specified index is not of the expected type.void setBinary(String name, byte[] value) throws InconvertableTypeException
name - the name of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if an attribute with the specified name is not found, or if it is not of the
expected type.void setFeature(int index,
IFeature value)
throws InconvertableTypeException
index - the index of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if the attribute at the specified index is not of the expected type.void setFeature(String name, IFeature value) throws InconvertableTypeException
name - the name of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if an attribute with the specified name is not found, or if it is not of the
expected type.void setFeatureCollection(int index,
IFeatureCollection value)
throws InconvertableTypeException
index - the index of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if the attribute at the specified index is not of the expected type.void setFeatureCollection(String name, IFeatureCollection value) throws InconvertableTypeException
name - the name of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if an attribute with the specified name is not found, or if it is not of the
expected type.void setMultiFeatureCollection(int index,
IMultiFeatureCollection value)
throws InconvertableTypeException
index - the index of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if the attribute at the specified index is not of the expected type.void setMultiFeatureCollection(String name, IMultiFeatureCollection value) throws InconvertableTypeException
name - the name of the attribute to modify.value - the new value for the attribute.InconvertableTypeException - if an attribute with the specified name is not found, or if it is not of the
expected type.© 2007, 2022 Precisely. All rights reserved.