Record Class ShapefileAttributeDescriptor

java.lang.Object
java.lang.Record
ch.so.agi.gretl.internal.shapefile.ShapefileAttributeDescriptor

public record ShapefileAttributeDescriptor(String iomAttributeName, String dbfFieldName, DbfFieldType dbfType, int length, int decimalCount, ShapeType shapeType, Integer srid, boolean mandatory) extends Record
  • Constructor Details

    • ShapefileAttributeDescriptor

      public ShapefileAttributeDescriptor(String iomAttributeName, String dbfFieldName, DbfFieldType dbfType, int length, int decimalCount, ShapeType shapeType, Integer srid, boolean mandatory)
      Creates an instance of a ShapefileAttributeDescriptor record class.
      Parameters:
      iomAttributeName - the value for the iomAttributeName record component
      dbfFieldName - the value for the dbfFieldName record component
      dbfType - the value for the dbfType record component
      length - the value for the length record component
      decimalCount - the value for the decimalCount record component
      shapeType - the value for the shapeType record component
      srid - the value for the srid record component
      mandatory - the value for the mandatory record component
  • Method Details

    • geometry

      public boolean geometry()
    • toDbfField

      public DbfField toDbfField()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • iomAttributeName

      public String iomAttributeName()
      Returns the value of the iomAttributeName record component.
      Returns:
      the value of the iomAttributeName record component
    • dbfFieldName

      public String dbfFieldName()
      Returns the value of the dbfFieldName record component.
      Returns:
      the value of the dbfFieldName record component
    • dbfType

      public DbfFieldType dbfType()
      Returns the value of the dbfType record component.
      Returns:
      the value of the dbfType record component
    • length

      public int length()
      Returns the value of the length record component.
      Returns:
      the value of the length record component
    • decimalCount

      public int decimalCount()
      Returns the value of the decimalCount record component.
      Returns:
      the value of the decimalCount record component
    • shapeType

      public ShapeType shapeType()
      Returns the value of the shapeType record component.
      Returns:
      the value of the shapeType record component
    • srid

      public Integer srid()
      Returns the value of the srid record component.
      Returns:
      the value of the srid record component
    • mandatory

      public boolean mandatory()
      Returns the value of the mandatory record component.
      Returns:
      the value of the mandatory record component