Class Field



  • public class Field
    extends DataColumn
    The field in attribute table of shape file
    • Constructor Detail

      • Field

        public Field​(java.lang.String fName,
                     DataTypes type,
                     int fLen,
                     int fNumDec)
        Constructor
        Parameters:
        fName - Field name
        type - Data type
        fLen - Field length
        fNumDec - Field decimal number
      • Field

        public Field​(java.lang.String fName,
                     DataTypes type)
        Constructor
        Parameters:
        fName - Field name
        type - Field data type
      • Field

        public Field​(java.lang.String fName,
                     char fType,
                     int fLen,
                     int fNumDec)
        Constructor
        Parameters:
        fName - Field name
        fType - Field type
        fLen - Field length
        fNumDec - Field decimal number
      • Field

        public Field​(DataColumn inColumn)
        Constructor
        Parameters:
        inColumn - In data column
    • Method Detail

      • getLength

        public int getLength​()
        Get field length
        Returns:
        Field length
      • setLength

        public void setLength​(int len)
        Set field length
        Parameters:
        len - Field length
      • getDecimalCount

        public int getDecimalCount​()
        Get field decimal count
        Returns:
        Field decimal count
      • setDecimalCount

        public void setDecimalCount​(int value)
        Set field decimal count
        Parameters:
        value - Field decimal count
      • getTypeCharacter

        public char getTypeCharacter​()
        This is the single character dBase code. Only some of these are supported with ESRI. C - Character (Chars, Strings, objects - as ToString(), and structs - as ) D - Date (DateTime) T - Time (DateTime) N - Number (Short, Integer, Long, Float, Double, byte) L - Logic (True-False, Yes-No) F - Float B - Double
        Returns:
        Type character
      • isNumeric

        public boolean isNumeric​()
        If the field is numeric
        Returns:
        Boolean