Package org.meteoinfo.data.mapdata
Class 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
-
-
Constructor Summary
Constructors Constructor Description Field(java.lang.String fName, char fType, int fLen, int fNumDec)ConstructorField(java.lang.String fName, DataTypes type)ConstructorField(java.lang.String fName, DataTypes type, int fLen, int fNumDec)ConstructorField(DataColumn inColumn)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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-
Methods inherited from class org.meteoinfo.table.DataColumn
clone, convertTo, getCaptionName, getColumnIndex, getColumnName, getDataType, getDataTypeName, getFormat, getTable, isJoined, isReadOnly, setCaptionName, setColumnIndex, setColumnName, setDataType, setFormat, setJoined, setReadOnly, setTable, toString
-
-
-
-
Constructor Detail
-
Field
public Field(java.lang.String fName, DataTypes type, int fLen, int fNumDec)Constructor- Parameters:
fName- Field nametype- Data typefLen- Field lengthfNumDec- Field decimal number
-
Field
public Field(java.lang.String fName, DataTypes type)Constructor- Parameters:
fName- Field nametype- Field data type
-
Field
public Field(java.lang.String fName, char fType, int fLen, int fNumDec)Constructor- Parameters:
fName- Field namefType- Field typefLen- Field lengthfNumDec- 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
-
-