类 Field
- java.lang.Object
-
- org.meteoinfo.table.DataColumn
-
- org.meteoinfo.data.mapdata.Field
-
public class Field extends DataColumn
The field in attribute table of shape file- 作者:
- yaqiang
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intgetDecimalCount()Get field decimal countintgetLength()Get field lengthchargetTypeCharacter()This is the single character dBase code.booleanisNumeric()If the field is numericvoidsetDecimalCount(int value)Set field decimal countvoidsetLength(int len)Set field length-
从类继承的方法 org.meteoinfo.table.DataColumn
clone, convertTo, getCaptionName, getColumnIndex, getColumnName, getDataType, getDataTypeName, getFormat, getTable, isJoined, isReadOnly, setCaptionName, setColumnIndex, setColumnName, setDataType, setFormat, setJoined, setReadOnly, setTable, toString
-
-
-
-
构造器详细资料
-
Field
public Field(java.lang.String fName, DataTypes type, int fLen, int fNumDec)Constructor- 参数:
fName- Field nametype- Data typefLen- Field lengthfNumDec- Field decimal number
-
Field
public Field(java.lang.String fName, DataTypes type)Constructor- 参数:
fName- Field nametype- Field data type
-
Field
public Field(java.lang.String fName, char fType, int fLen, int fNumDec)Constructor- 参数:
fName- Field namefType- Field typefLen- Field lengthfNumDec- 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
-
-