Class AttributeInfo

java.lang.Object
de.fho.jump.pirol.utilities.attributes.AttributeInfo
All Implemented Interfaces:
Comparable

public class AttributeInfo extends Object implements 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 Details

    • attributeType

      protected AttributeType attributeType
    • attributeName

      protected String attributeName
    • uniqueAttributeName

      protected String uniqueAttributeName
    • unitIdentifier

      protected String unitIdentifier
    • nullValue

      protected Object nullValue
    • dataBaseId

      protected int dataBaseId
      For attributes that have been loaded from the DB
    • index

      protected int index
      attribute's index in a (given?) FeatureSchema
  • Constructor Details

  • Method Details

    • getAttributeName

      public String getAttributeName()
    • getAttributeType

      public AttributeType getAttributeType()
    • getIndex

      public int getIndex()
    • setIndex

      public void setIndex(int index)
    • getNullValue

      public Object getNullValue()
    • getUniqueAttributeName

      public String getUniqueAttributeName()
    • setUniqueAttributeName

      public void setUniqueAttributeName(String uniqueAttributeName)
    • setAttributeName

      public void setAttributeName(String attributeName)
    • setAttributeType

      public void setAttributeType(AttributeType attributeType)
    • setNullValue

      public void setNullValue(Object nullValue)
    • getUnitIdentifier

      public String getUnitIdentifier()
    • setUnitIdentifier

      public void setUnitIdentifier(String unitIdentifier)
    • schema2AttributeInfoArray

      public static AttributeInfo[] schema2AttributeInfoArray(FeatureSchema fs)
      convenient method to convert a FeatureSchema into an AttributeInfo array
      Parameters:
      fs - the FeatureSchema
      Returns:
      an array of AttributeInfos matching the FeatureSchema
    • attributeInfoArray2FeatureSchema

      public static FeatureSchema attributeInfoArray2FeatureSchema(AttributeInfo[] attributeInfos)
      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

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(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!
      Specified by:
      compareTo in interface Comparable
      Parameters:
      theOtherObject - the other Object
      Returns:
      see Comparable for
    • getDataBaseId

      public int getDataBaseId()
    • setDataBaseId

      public void setDataBaseId(int dataBaseId)