Class Field

java.lang.Object
hec.map.aishape.Field
All Implemented Interfaces:
AsciiSerializable, FieldAccessor, AiShapeConst, Serializable

public class Field extends Object implements AiShapeConst, Serializable, AsciiSerializable
- hold field attribute values from dbf file
See Also:
  • Constructor Details

  • Method Details

    • getType

      public char getType()
      Returns one of the following valuse B - binary C - character W - Unicode D - Date F - Float L - Logical N - Numeric M - memo G - Genearal
    • setType

      public final void setType(char type)
      Sets the type of field that this object represents. Valid value are the following. B - binary C - character W - Unicode D - Date F - Float L - Logical N - Numeric M - memo G - Genearal
    • getName

      public String getName()
    • getValue

      public Object getValue()
    • serializeString

      public String serializeString()
    • deserializeString

      public static Field deserializeString(String s)
      Parses the string for the hash value. The default field type will be set to "character"
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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