es.prodevelop.gvsig.mobile.fmap.driver.vect.dbf
Class DbfFieldInfo

java.lang.Object
  extended byes.prodevelop.gvsig.mobile.fmap.driver.vect.dbf.DbfFieldInfo

public class DbfFieldInfo
extends java.lang.Object

Utility class to store the metadata of a single field.

Author:
jldominguez
See Also:
Types

Constructor Summary
DbfFieldInfo(int _type, java.lang.String _name, int _w, int _ndec)
          Constructor.
 
Method Summary
 java.lang.String getName()
           
 int getNDecimals()
           
 int getType()
           
 int getWidth()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbfFieldInfo

public DbfFieldInfo(int _type,
                    java.lang.String _name,
                    int _w,
                    int _ndec)
Constructor.

Parameters:
_type - field type
_name - field name
_w - field width
_ndec - number of decimal positions of this field (only makes sense if it's a numeric field.)
Method Detail

getName

public java.lang.String getName()
Returns:
the field name

getNDecimals

public int getNDecimals()
Returns:
the number of decimal positions

getType

public int getType()
Returns:
the field type

getWidth

public int getWidth()
Returns:
the field width