|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fho.jump.pirol.utilities.attributes.AttributeInfo
public class AttributeInfo
Class to store all information for a given attribute, so it can easily passed to e.g. to methods of the FeatureCollectionTools
de.fho.jump.pirol.utilities.FeatureCollectionTools| Field Summary | |
|---|---|
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 Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
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)
| Method Detail |
|---|
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 FeatureSchema
public static FeatureSchema attributeInfoArray2FeatureSchema(AttributeInfo[] attributeInfos)
attributeInfos - an array of AttributeInfos matching wanted in the FeatureSchema
public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object theOtherObject)
compareTo in interface java.lang.ComparabletheOtherObject -
Comparable forpublic int getDataBaseId()
public void setDataBaseId(int dataBaseId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||