类 Field


  • public class Field
    extends DataColumn
    The field in attribute table of shape file
    作者:
    yaqiang
    • 构造器详细资料

      • Field

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

        public Field​(java.lang.String fName,
                     DataType type)
        Constructor
        参数:
        fName - Field name
        type - Field data type
      • Field

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

        public Field​(DataColumn inColumn)
        Constructor
        参数:
        inColumn - In data column
    • 方法详细资料

      • getLength

        public int getLength()
        Get field length
        返回:
        Field length
      • setLength

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

        public int getDecimalCount()
        Get field decimal count
        返回:
        Field decimal count
      • setDecimalCount

        public void setDecimalCount​(int value)
        Set field decimal count
        参数:
        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
        返回:
        Type character
      • isNumeric

        public boolean isNumeric()
        If the field is numeric
        返回:
        Boolean