public class AllType extends Object implements IAttributeValue
| Constructor and Description |
|---|
AllType()
Constructs a typeless null value AllType.
|
AllType(boolean z)
Constructs a boolean AllType.
|
AllType(byte b)
Constructs a byte AllType.
|
AllType(byte[] b)
Constructs a binary AllType.
|
AllType(char c)
Constructs a char AllType.
|
AllType(double d)
Constructs a double AllType.
|
AllType(float f)
Constructs a float AllType.
|
AllType(IFeature f)
Constructs a feature AllType.
|
AllType(IFeatureCollection f)
Constructs a feature collection AllType.
|
AllType(IFeatureGeometry g)
Constructs a feature geometry AllType.
|
AllType(IMultiFeatureCollection f)
Constructs a multi-feature collection AllType.
|
AllType(int i)
Constructs an integer AllType.
|
AllType(IRasterDataset r)
Constructs a raster AllType.
|
AllType(IStyle s)
Constructs a style AllType.
|
AllType(long l)
Constructs a long AllType.
|
AllType(MIDate d)
Constructs a date AllType.
|
AllType(MIDateTime d)
Constructs a date-time AllType.
|
AllType(MIDateTimeZone d)
Constructs a date-time-timezone AllType.
|
AllType(MITime t)
Constructs a time AllType.
|
AllType(MITimespan t)
Constructs a timespan AllType.
|
AllType(short s)
Constructs a short AllType.
|
AllType(String s)
Constructs a string AllType.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Returns true if Compare.Compare(this, o)==CompareResult.EQUAL and o is an AllType.
|
byte[] |
getBinary()
Gets the value of the attribute.
|
boolean |
getBoolean()
Gets the value of the attribute.
|
byte |
getByte()
Gets the value of the attribute.
|
char |
getChar()
Gets the value of the attribute.
|
AllType |
getCopy()
Returns a deep copy of this AllType.
|
AttributeType |
getDataType()
Indicates the data type of the attribute.
|
MIDate |
getDate()
Gets the value of the attribute.
|
MIDateTime |
getDateTime()
Gets the value of the attribute.
|
MIDateTimeZone |
getDateTimeZone()
Gets the value of the attribute.
|
double |
getDouble()
Gets the value of the attribute.
|
IFeature |
getFeature()
Gets the value of the attribute.
|
IFeatureCollection |
getFeatureCollection()
Gets the value of the attribute.
|
IFeatureGeometry |
getFeatureGeometry()
Gets the value of the attribute.
|
float |
getFloat()
Gets the value of the attribute.
|
int |
getInt()
Gets the value of the attribute.
|
long |
getLong()
Gets the value of the attribute.
|
IMultiFeatureCollection |
getMultiFeatureCollection()
Gets the value of the attribute.
|
IRasterDataset |
getRasterDataset()
Gets the value of the attribute.
|
short |
getShort()
Gets the value of the attribute.
|
String |
getString()
Gets the value of the attribute.
|
IStyle |
getStyle()
Gets the value of the attribute.
|
MITime |
getTime()
Gets the value of the attribute.
|
MITimespan |
getTimespan()
Gets the value of the attribute.
|
int |
hashCode() |
boolean |
isNull()
Indicates if the value of the attribute is null.
|
void |
setBinary(byte[] b)
Sets the value of the attribute.
|
void |
setBoolean(boolean z)
Sets the value of the attribute.
|
void |
setByte(byte b)
Sets the value of the attribute.
|
void |
setChar(char c)
Sets the value of the attribute.
|
void |
setDate(MIDate d)
Sets the value of the attribute.
|
void |
setDateTime(MIDateTime d)
Sets the value of the attribute.
|
void |
setDateTimeZone(MIDateTimeZone d)
Sets the value of the attribute.
|
void |
setDouble(double d)
Sets the value of the attribute.
|
void |
setFeature(IFeature f)
Sets the value of the attribute.
|
void |
setFeatureCollection(IFeatureCollection f)
Sets the value of the attribute.
|
void |
setFeatureGeometry(IFeatureGeometry g)
Sets the value of the attribute.
|
void |
setFloat(float f)
Sets the value of the attribute.
|
void |
setFromFeature(IFeature feature,
int attributeIndex,
boolean bDeepCopy)
Note this should be a non-transient operation.
|
void |
setInt(int i)
Sets the value of the attribute.
|
void |
setLong(long l)
Sets the value of the attribute.
|
void |
setMultiFeatureCollection(IMultiFeatureCollection f)
Sets the value of the attribute.
|
void |
setNull()
Sets the value of the attribute to
null. |
void |
setRasterDataset(IRasterDataset r)
Sets the value of the attribute.
|
void |
setShort(short s)
Sets the value of the attribute.
|
void |
setString(String s)
Sets the value of the attribute.
|
void |
setStyle(IStyle s)
Sets the value of the attribute.
|
void |
setTime(MITime t)
Sets the value of the attribute.
|
void |
setTimespan(MITimespan t)
Sets the value of the attribute.
|
void |
setValue(AllType from)
Sets the value of this AllType to match the input AllType.
|
void |
setValue(IAttributeValue from,
boolean bDeepCopy)
Note this should be a non-transient operation.
|
void |
setValue(Object o) |
public AllType()
public AllType(boolean z)
z - The value to store in the AllType.public AllType(byte b)
b - The value to store in the AllType.public AllType(char c)
c - The value to store in the AllType.public AllType(short s)
s - The value to store in the AllType.public AllType(int i)
i - The value to store in the AllType.public AllType(long l)
l - The value to store in the AllType.public AllType(float f)
f - The value to store in the AllType.public AllType(double d)
d - The value to store in the AllType.public AllType(String s)
s - The value to store in the AllType.public AllType(byte[] b)
b - The value to store in the AllType.public AllType(MIDate d)
d - The value to store in the AllType.public AllType(MITime t)
t - The value to store in the AllType.public AllType(MIDateTime d)
d - The value to store in the AllType.public AllType(MIDateTimeZone d)
d - The value to store in the AllType.public AllType(MITimespan t)
t - The value to store in the AllType.public AllType(IFeatureGeometry g)
g - The value to store in the AllType.public AllType(IStyle s)
s - The value to store in the AllType.public AllType(IRasterDataset r)
r - The value to store in the AllType.public AllType(IFeature f)
f - The value to store in the AllType.public AllType(IFeatureCollection f)
f - The value to store in the AllType.public AllType(IMultiFeatureCollection f)
f - The value to store in the AllType.public AttributeType getDataType()
IAttributeValuegetDataType in interface IAttributeValuepublic AllType getCopy()
getCopy in interface IAttributeValuepublic void setValue(AllType from)
from - The AllType to copy from.public void setValue(IAttributeValue from, boolean bDeepCopy)
IAttributeValuesetValue in interface IAttributeValuefrom - - The value to set this attribute to.bDeepCopy - - True if the from value should be deep copied.public void setValue(Object o)
public void setFromFeature(IFeature feature, int attributeIndex, boolean bDeepCopy)
IAttributeValuesetFromFeature in interface IAttributeValuefeature - - The feature containing the data this attribute is to be set to.attributeIndex - - The index of the attributebDeepCopy - - True if the from value should be deep copied.public boolean isNull()
IAttributeValuegetString and getInt will
throw an exception if the value for the attribute is null. Users should first
check for null values using this method.isNull in interface IAttributeValuetrue if the value for the attribute is null; false otherwise.public void setNull()
IAttributeValuenull. 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 referenece for the value. This will generate an exception.
To set a value to null, use the setNull method.setNull in interface IAttributeValuepublic boolean getBoolean()
IAttributeValuenull, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.getBoolean in interface IAttributeValueIAttributeValue.isNull()public void setBoolean(boolean z)
IAttributeValuesetBoolean in interface IAttributeValuez - the new value for the attribute.public byte getByte()
IAttributeValuenull, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.getByte in interface IAttributeValueIAttributeValue.isNull()public void setByte(byte b)
IAttributeValuesetByte in interface IAttributeValueb - the new value for the attribute.public char getChar()
IAttributeValuenull, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.getChar in interface IAttributeValueIAttributeValue.isNull()public void setChar(char c)
IAttributeValuesetChar in interface IAttributeValuec - the new value for the attribute.public short getShort()
IAttributeValuenull, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.getShort in interface IAttributeValueIAttributeValue.isNull()public void setShort(short s)
IAttributeValuesetShort in interface IAttributeValues - the new value for the attribute.public int getInt()
IAttributeValuenull, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.getInt in interface IAttributeValueIAttributeValue.isNull()public void setInt(int i)
IAttributeValuesetInt in interface IAttributeValuei - the new value for the attribute.public long getLong()
IAttributeValuenull, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.getLong in interface IAttributeValueIAttributeValue.isNull()public void setLong(long l)
IAttributeValuesetLong in interface IAttributeValuel - the new value for the attribute.public float getFloat()
IAttributeValuenull, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.getFloat in interface IAttributeValueIAttributeValue.isNull()public void setFloat(float f)
IAttributeValuesetFloat in interface IAttributeValuef - the new value for the attribute.public double getDouble()
IAttributeValuenull, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.getDouble in interface IAttributeValueIAttributeValue.isNull()public void setDouble(double d)
IAttributeValuesetDouble in interface IAttributeValued - the new value for the attribute.public String getString()
IAttributeValuenull, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.getString in interface IAttributeValueIAttributeValue.isNull()public void setString(String s)
IAttributeValuesetString in interface IAttributeValues - the new value for the attribute.public byte[] getBinary()
IAttributeValuenull, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.getBinary in interface IAttributeValueIAttributeValue.isNull()public void setBinary(byte[] b)
IAttributeValuesetBinary in interface IAttributeValueb - the new value for the attribute.public MIDate getDate()
IAttributeValuenull, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.getDate in interface IAttributeValueIAttributeValue.isNull()public void setDate(MIDate d)
IAttributeValuesetDate in interface IAttributeValued - the new value for the attribute.public MITime getTime()
IAttributeValuenull, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.getTime in interface IAttributeValueIAttributeValue.isNull()public void setTime(MITime t)
IAttributeValuesetTime in interface IAttributeValuet - the new value for the attribute.public MIDateTime getDateTime()
IAttributeValuenull, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.getDateTime in interface IAttributeValueIAttributeValue.isNull()public void setDateTime(MIDateTime d)
IAttributeValuesetDateTime in interface IAttributeValued - the new value for the attribute.public MIDateTimeZone getDateTimeZone()
IAttributeValuenull, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.getDateTimeZone in interface IAttributeValueIAttributeValue.isNull()public void setDateTimeZone(MIDateTimeZone d)
IAttributeValuesetDateTimeZone in interface IAttributeValued - the new value for the attribute.public MITimespan getTimespan()
IAttributeValuenull, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.getTimespan in interface IAttributeValueIAttributeValue.isNull()public void setTimespan(MITimespan t)
IAttributeValuesetTimespan in interface IAttributeValuet - the new value for the attribute.public IFeatureGeometry getFeatureGeometry()
IAttributeValuenull, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.getFeatureGeometry in interface IAttributeValueIAttributeValue.isNull()public void setFeatureGeometry(IFeatureGeometry g)
IAttributeValuesetFeatureGeometry in interface IAttributeValueg - the new value for the attribute.public IStyle getStyle()
IAttributeValuenull, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.getStyle in interface IAttributeValueIAttributeValue.isNull()public void setStyle(IStyle s)
IAttributeValuesetStyle in interface IAttributeValues - the new value for the attribute.public IRasterDataset getRasterDataset()
IAttributeValuenull, an
exception will be thrown. Users must check for null values before attempting to access
a typed value accessor method.getRasterDataset in interface IAttributeValueIAttributeValue.isNull()public void setRasterDataset(IRasterDataset r)
IAttributeValuesetRasterDataset in interface IAttributeValuer - the new value for the attribute.public IFeature getFeature()
IAttributeValuenull, 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....
getFeature in interface IAttributeValueIAttributeValue.isNull()public void setFeature(IFeature f)
IAttributeValuesetFeature in interface IAttributeValuef - the new value for the attribute.public IFeatureCollection getFeatureCollection()
IAttributeValuenull, 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....
getFeatureCollection in interface IAttributeValueIAttributeValue.isNull()public void setFeatureCollection(IFeatureCollection f)
IAttributeValuesetFeatureCollection in interface IAttributeValuef - the new value for the attribute.public IMultiFeatureCollection getMultiFeatureCollection()
IAttributeValuenull, 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....
getMultiFeatureCollection in interface IAttributeValueIAttributeValue.isNull()public void setMultiFeatureCollection(IMultiFeatureCollection f)
IAttributeValuesetMultiFeatureCollection in interface IAttributeValuef - the new value for the attribute.public boolean equals(Object o)
© 2007, 2022 Precisely. All rights reserved.