|
NVS Shapefile library Version 3.2 NVision Solutions, Inc. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.nvs.shapefile.TableDescriptor
TableDescriptor's populate a TableDescription and provide information about the field names, types, and widths for a Shapefile's records.
| Constructor Summary | |
TableDescriptor()
Default constructor. |
|
TableDescriptor(java.lang.String name)
Initializes field name. |
|
TableDescriptor(java.lang.String name,
int type)
Initializes to specified name and type. |
|
TableDescriptor(java.lang.String name,
int type,
int width)
Initializes to specified name, type, and width. |
|
| Method Summary | |
java.lang.String |
getName()
Retrieves the name of the field. |
int |
getPrecision()
Retrieves the precision of the field. |
int |
getType()
Retrieves the data type of the field. |
int |
getWidth()
Retrieves the width of the field. |
void |
setName(java.lang.String name)
Sets the specified field name. |
void |
setPrecision(int precision)
Sets the specified field precision. |
void |
setType(int type)
Sets the specified field type. |
void |
setWidth(int width)
Sets the specified field width. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TableDescriptor()
public TableDescriptor(java.lang.String name)
name - Desired name as a String
public TableDescriptor(java.lang.String name,
int type)
name - Desired name as a Stringtype - Desired type as an int
public TableDescriptor(java.lang.String name,
int type,
int width)
name - Desired name as a Stringtype - Desired type as an intwidth - Desired width as an int| Method Detail |
public int getWidth()
public void setWidth(int width)
width - Desired field width as an intpublic int getPrecision()
public void setPrecision(int precision)
precision - Desired field precision as an intpublic java.lang.String getName()
public int getType()
public void setName(java.lang.String name)
name - Desired field name as a String
public void setType(int type)
throws InvalidFieldTypeException
type - Desired field type as an int
InvalidFieldTypeException - when a type is specified that is not Shapefile.FIELDTYPE_CHARACTER, Shapefile.FIELDTYPE_NUMBER,
Shapefile.FIELDTYPE_FLOAT, Shapefile.FIELDTYPE_DATE, or Shapefile.FIELDTYPE_LOGICAL
|
NVS Shapefile library Version 3.2 NVision Solutions, Inc. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||