|
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.Record
Records contain an internal Collection of RecordFields and store the database attributes for a given shape.
| Constructor Summary | |
Record()
Default constructor. |
|
Record(java.util.Collection fields)
Initializes the Record to the specified collection of RecordFields. |
|
| Method Summary | |
void |
addField(com.nvs.shapefile.RecordField fld)
Adds the specified RecordField. |
com.nvs.shapefile.RecordField |
getField(int index)
Retrieves the RecordField at the specified index. |
com.nvs.shapefile.RecordField |
getField(java.lang.String name)
Retrieves the RecordField with specified name. |
int |
getFieldCount()
Retrieves the current number of RecordFields |
java.util.ArrayList |
getFields()
Retrieves all RecordFields as an ArrayList |
void |
removeField(int index)
Removes the RecordField at the specified index. |
void |
removeField(java.lang.String name)
Removes the RecordField with the supplied name. |
void |
setField(com.nvs.shapefile.RecordField fld)
Sets value of RecordField with the name of fld.getName(). |
void |
setFields(java.util.Collection fields)
Sets the internal Collection of RecordFields to the specified Collection |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Record()
public Record(java.util.Collection fields)
fields - Desired RecordFields as a Collection.| Method Detail |
public void setField(com.nvs.shapefile.RecordField fld)
throws InvalidFieldNameException
fld - RecordField with desired name and new value
InvalidFieldNameException - when fld.getName() does not equal the name of an existing RecordFieldpublic void setFields(java.util.Collection fields)
fields - New Collection of RecordFields
public void addField(com.nvs.shapefile.RecordField fld)
throws InvalidFieldNameException
fld - RecordField to be added
InvalidFieldNameException - when fld.getName() equals the name of
an already existing RecordField
public void removeField(java.lang.String name)
throws InvalidFieldNameException
name - Name of RecordField to be removed as a String
InvalidFieldNameException - when no RecordField with supplied name exists.
public void removeField(int index)
throws java.lang.IndexOutOfBoundsException
index - Index of RecordField to be removed as an int
java.lang.IndexOutOfBoundsException - when index is greater than getFieldCount()public com.nvs.shapefile.RecordField getField(java.lang.String name)
name - Name of desired RecordField as a String
public com.nvs.shapefile.RecordField getField(int index)
throws java.lang.IndexOutOfBoundsException
index - Index of desired RecordField as an int
java.lang.IndexOutOfBoundsException - when index is greater than getFieldCount()public java.util.ArrayList getFields()
public int getFieldCount()
|
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 | |||||||||