dbfeditor.data
Class DBFRecord

java.lang.Object
  extended by dbfeditor.data.DBFRecord

public class DBFRecord
extends java.lang.Object

DBFRecord - An object of this class stores all of the data for a single row in a .dbf file for our table.

Author:
Richard McKenna

Constructor Summary
DBFRecord(int numFields)
          This constructor initializes our array for all the data depending on how many columns we will have.
 
Method Summary
 java.lang.Object[] getAllData()
          This method returns all the data as an array.
 java.lang.Object getData(int index)
          This method returns the object at a specific index.
 byte getMystery()
          This method returns the mystery data.
 int getNumFields()
          This method returns the number of fields.
 void setData(java.lang.Object data, int index)
          This method sets the data to the new input value.
 void setMystery(byte initMystery)
          This method sets the mystery data to the new input value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBFRecord

public DBFRecord(int numFields)
This constructor initializes our array for all the data depending on how many columns we will have.

Method Detail

getNumFields

public int getNumFields()
This method returns the number of fields.

Returns:
The number of fields.

getAllData

public java.lang.Object[] getAllData()
This method returns all the data as an array.

Returns:
All the data information.

getMystery

public byte getMystery()
This method returns the mystery data.

Returns:
The mystery data value.

getData

public java.lang.Object getData(int index)
This method returns the object at a specific index.

Parameters:
index - The location of the object.
Returns:
The data at location index.

setData

public void setData(java.lang.Object data,
                    int index)
This method sets the data to the new input value.

Parameters:
data - The new data.
index - The location of the object.

setMystery

public void setMystery(byte initMystery)
This method sets the mystery data to the new input value.

Parameters:
initMystery - The new mystery data.