Class AiShapeFieldDescriptor

java.lang.Object
hec.map.aishape.AiShapeFieldDescriptor
All Implemented Interfaces:
AsciiSerializable, FieldAccessor, Serializable, Comparable

public class AiShapeFieldDescriptor extends Object implements Serializable, Comparable, AsciiSerializable
Class AiShapeFieldDescriptor used to hold data describing a Shape File field description on the *.dbf file
See Also:
  • Constructor Details

    • AiShapeFieldDescriptor

      public AiShapeFieldDescriptor()
    • AiShapeFieldDescriptor

      public AiShapeFieldDescriptor(String value, char type, int length, int decimal)
    • AiShapeFieldDescriptor

      public AiShapeFieldDescriptor(byte[] field) throws IOException
      Throws:
      IOException
  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getLength

      public int getLength()
    • writeBytes

      public void writeBytes(byte[] bytes) throws IOException
      Throws:
      IOException
    • toString

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

      public int compareTo(Object compareTo)
      Compares the value of this AiShapeFieldDescriptor to the value of argument object if the argument object is a AiShapeFieldDescriptor. Otherwise, throws a ClassCastException.
      Specified by:
      compareTo in interface Comparable
    • getType

      public char getType()
    • isUnique

      public boolean isUnique()
    • getFieldObject

      public Object getFieldObject(Field fld)
      Description copied from interface: FieldAccessor
      This method allows access to java.lang.reflect.Field objects within the implementing class.
      Specified by:
      getFieldObject in interface FieldAccessor
      Parameters:
      fld - The field to get.
      Returns:
      The data object that is stored in the given field
    • setFieldObject

      public boolean setFieldObject(Field fld, Object fobj)
      Description copied from interface: FieldAccessor
      This allows access to fields withing the implementing object to set there data.
      Specified by:
      setFieldObject in interface FieldAccessor
      Parameters:
      fld - The java field object representing the member field to be set
      fobj - The data to set in that field
      Returns:
      returns true if successful