|
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.TableDescription
| Constructor Summary | |
TableDescription()
Default constructor. |
|
TableDescription(java.util.Collection descriptors)
Initializes with the specified Collection of TableDescriptors. |
|
| Method Summary | |
void |
addTableDescriptor(com.nvs.shapefile.TableDescriptor td)
Adds the specified TableDescriptor. |
boolean |
contains(java.lang.String name)
|
int |
getFieldCount()
Retrieves the current number of TableDescriptors. |
com.nvs.shapefile.TableDescriptor |
getTableDescriptor(int index)
Retrieves the TableDescriptor at the specified index. |
com.nvs.shapefile.TableDescriptor |
getTableDescriptor(java.lang.String name)
Retrieves the TableDescriptor with the specified name. |
java.util.ArrayList |
getTableDescriptors()
Retrieves all TableDescriptors. |
void |
removeTableDescriptor(int index)
Removes the TableDescriptor at the specified index. |
void |
removeTableDescriptor(java.lang.String name)
Removes the TableDescriptor with the specified name. |
void |
setTableDescriptors(java.util.Collection descriptors)
Sets interal TableDescriptors Collection to specified Collection. |
void |
setTableDescriptorType(java.lang.String name,
int type)
Sets type of TableDescriptor with specified name. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TableDescription()
public TableDescription(java.util.Collection descriptors)
| Method Detail |
public com.nvs.shapefile.TableDescriptor getTableDescriptor(java.lang.String name)
name - Name of desired TableDescriptor as a String
public com.nvs.shapefile.TableDescriptor getTableDescriptor(int index)
throws java.lang.IndexOutOfBoundsException
index - Index of desired TableDescriptor as an int
java.lang.IndexOutOfBoundsException - if specified index is greater than getFieldCount()public java.util.ArrayList getTableDescriptors()
public void setTableDescriptorType(java.lang.String name,
int type)
throws InvalidDescriptorNameException,
InvalidFieldTypeException
name - Name of desired TableDescriptor as a Stringtype - Type of desired TableDescriptor as an intInvalidDescriptorNameException - when name is not currently the name of an existing TableDescriptor
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
public void addTableDescriptor(com.nvs.shapefile.TableDescriptor td)
throws InvalidDescriptorNameException
td - TableDescriptor to be added
InvalidDescriptorNameException - when td.getName() is already the name of a currently existing TableDescriptor, or is nullpublic int getFieldCount()
public void setTableDescriptors(java.util.Collection descriptors)
descriptors - Desired TableDescriptors as a Collection
public void removeTableDescriptor(int index)
throws java.lang.IndexOutOfBoundsException
index - Index of TableDescriptor to be removed as an int
java.lang.IndexOutOfBoundsException - when index is greater than getFieldCount()
public void removeTableDescriptor(java.lang.String name)
throws InvalidDescriptorNameException
name - Name of TableDescriptor to be removed as a String
InvalidDescriptorNameException - when name doesn't correspond to the name of any existing TableDescriptorpublic boolean contains(java.lang.String name)
|
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 | |||||||||