public class AttributeInfo
extends java.lang.Object
implements java.lang.Comparable
FeatureCollectionTools
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
attributeName |
protected AttributeType |
attributeType |
protected int |
dataBaseId
For attributes that have been loaded from the DB
|
protected int |
index
attribute's index in a (given?)
|
protected java.lang.Object |
nullValue |
protected java.lang.String |
uniqueAttributeName |
protected java.lang.String |
unitIdentifier |
Constructor and Description |
---|
AttributeInfo(AttributeType attributeType,
java.lang.String attributeName) |
AttributeInfo(AttributeType attributeType,
java.lang.String attributeName,
java.lang.Object nullValue) |
AttributeInfo(java.lang.String attributeName,
java.lang.Object nullValue) |
Modifier and Type | Method and Description |
---|---|
static FeatureSchema |
attributeInfoArray2FeatureSchema(AttributeInfo[] attributeInfos)
convenient method to convert an AttributeInfo array into a FeatureSchema
|
int |
compareTo(java.lang.Object theOtherObject)
In order for this to work, the attribute indices of this AttributeInfo object and of the other
one has to be set, correctly!
|
java.lang.String |
getAttributeName() |
AttributeType |
getAttributeType() |
int |
getDataBaseId() |
int |
getIndex() |
java.lang.Object |
getNullValue() |
java.lang.String |
getUniqueAttributeName() |
java.lang.String |
getUnitIdentifier() |
static AttributeInfo[] |
schema2AttributeInfoArray(FeatureSchema fs)
convenient method to convert a FeatureSchema into an AttributeInfo array
|
void |
setAttributeName(java.lang.String attributeName) |
void |
setAttributeType(AttributeType attributeType) |
void |
setDataBaseId(int dataBaseId) |
void |
setIndex(int index) |
void |
setNullValue(java.lang.Object nullValue) |
void |
setUniqueAttributeName(java.lang.String uniqueAttributeName) |
void |
setUnitIdentifier(java.lang.String unitIdentifier) |
java.lang.String |
toString() |
protected AttributeType attributeType
protected java.lang.String attributeName
protected java.lang.String uniqueAttributeName
protected java.lang.String unitIdentifier
protected java.lang.Object nullValue
protected int dataBaseId
protected int index
public AttributeInfo(AttributeType attributeType, java.lang.String attributeName, java.lang.Object nullValue)
public AttributeInfo(AttributeType attributeType, java.lang.String attributeName)
public AttributeInfo(java.lang.String attributeName, java.lang.Object nullValue)
public java.lang.String getAttributeName()
public AttributeType getAttributeType()
public int getIndex()
public void setIndex(int index)
public java.lang.Object getNullValue()
public java.lang.String getUniqueAttributeName()
public void setUniqueAttributeName(java.lang.String uniqueAttributeName)
public void setAttributeName(java.lang.String attributeName)
public void setAttributeType(AttributeType attributeType)
public void setNullValue(java.lang.Object nullValue)
public java.lang.String getUnitIdentifier()
public void setUnitIdentifier(java.lang.String unitIdentifier)
public static AttributeInfo[] schema2AttributeInfoArray(FeatureSchema fs)
fs
- the FeatureSchemapublic static FeatureSchema attributeInfoArray2FeatureSchema(AttributeInfo[] attributeInfos)
attributeInfos
- an array of AttributeInfos matching wanted in the FeatureSchemapublic java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object theOtherObject)
compareTo
in interface java.lang.Comparable
theOtherObject
- Comparable
forpublic int getDataBaseId()
public void setDataBaseId(int dataBaseId)