Class AttributeInfo
java.lang.Object
de.fho.jump.pirol.utilities.attributes.AttributeInfo
- All Implemented Interfaces:
Comparable
Class to store all information for a given attribute, so it can easily passed
to e.g. to methods of the FeatureCollectionTools
- Version:
- $Rev$
- Author:
- Ole Rahn
FH Osnabrück - University of Applied Sciences Osnabrück,
Project: PIROL (2005),
Subproject: Daten- und Wissensmanagement - See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected AttributeTypeprotected intFor attributes that have been loaded from the DBprotected intattribute's index in a (given?)protected Objectprotected Stringprotected String -
Constructor Summary
ConstructorsConstructorDescriptionAttributeInfo(AttributeType attributeType, String attributeName) AttributeInfo(AttributeType attributeType, String attributeName, Object nullValue) AttributeInfo(String attributeName, Object nullValue) -
Method Summary
Modifier and TypeMethodDescriptionstatic FeatureSchemaattributeInfoArray2FeatureSchema(AttributeInfo[] attributeInfos) convenient method to convert an AttributeInfo array into a FeatureSchemaintIn order for this to work, the attribute indices of this AttributeInfo object and of the other one has to be set, correctly!intintgetIndex()static AttributeInfo[]convenient method to convert a FeatureSchema into an AttributeInfo arrayvoidsetAttributeName(String attributeName) voidsetAttributeType(AttributeType attributeType) voidsetDataBaseId(int dataBaseId) voidsetIndex(int index) voidsetNullValue(Object nullValue) voidsetUniqueAttributeName(String uniqueAttributeName) voidsetUnitIdentifier(String unitIdentifier) toString()
-
Field Details
-
attributeType
-
attributeName
-
uniqueAttributeName
-
unitIdentifier
-
nullValue
-
dataBaseId
protected int dataBaseIdFor attributes that have been loaded from the DB -
index
protected int indexattribute's index in a (given?) FeatureSchema
-
-
Constructor Details
-
AttributeInfo
-
AttributeInfo
-
AttributeInfo
-
-
Method Details
-
getAttributeName
-
getAttributeType
-
getIndex
public int getIndex() -
setIndex
public void setIndex(int index) -
getNullValue
-
getUniqueAttributeName
-
setUniqueAttributeName
-
setAttributeName
-
setAttributeType
-
setNullValue
-
getUnitIdentifier
-
setUnitIdentifier
-
schema2AttributeInfoArray
convenient method to convert a FeatureSchema into an AttributeInfo array- Parameters:
fs- the FeatureSchema- Returns:
- an array of AttributeInfos matching the FeatureSchema
-
attributeInfoArray2FeatureSchema
convenient method to convert an AttributeInfo array into a FeatureSchema- Parameters:
attributeInfos- an array of AttributeInfos matching wanted in the FeatureSchema- Returns:
- the desired FeatureSchema
-
toString
-
compareTo
In order for this to work, the attribute indices of this AttributeInfo object and of the other one has to be set, correctly!- Specified by:
compareToin interfaceComparable- Parameters:
theOtherObject- the other Object- Returns:
- see
Comparablefor
-
getDataBaseId
public int getDataBaseId() -
setDataBaseId
public void setDataBaseId(int dataBaseId)
-