net.sf.flatpack.structure
Class Row

java.lang.Object
  extended by net.sf.flatpack.structure.Row

public class Row
extends java.lang.Object

This holds a collection of columns and their values along with the actual rownumber they appear in the flat file

 

Constructor Summary
Row()
          Constructs a new Row
 
Method Summary
 void addColumn(java.util.List columns)
          Appends the List of Strings to the existing columns in the row
 void addColumn(java.lang.String colValue)
          Adds a column to a row
 java.util.List getCols()
          Returns the cols for the row.
 java.lang.String getMdkey()
           
 int getRowNumber()
          Returns the rowNumber.
 java.lang.String getValue(int colPosition)
          Returns the value of a column for a specified column name
 void setCols(java.util.List cols)
          Set the columns for the row.
 void setMdkey(java.lang.String mdkey)
           
 void setRowNumber(int rowNumber)
          Sets the rowNumber.
 void setValue(int columnIndex, java.lang.String value)
          Set the value of a column for a specified column name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Row

public Row()
Constructs a new Row

Method Detail

addColumn

public void addColumn(java.lang.String colValue)
Adds a column to a row

Parameters:
colValue - - String value to add to the row

addColumn

public void addColumn(java.util.List columns)
Appends the List of Strings to the existing columns in the row

Parameters:
columns - - List of Strings to append to the row

getValue

public java.lang.String getValue(int colPosition)
Returns the value of a column for a specified column name

Parameters:
colPosition - - int position of the column in the array
Returns:
String value of column

setValue

public void setValue(int columnIndex,
                     java.lang.String value)
Set the value of a column for a specified column name

Parameters:
columnIndex - - column number to change
value - - String column value

getRowNumber

public int getRowNumber()
Returns the rowNumber.

Returns:
int

setRowNumber

public void setRowNumber(int rowNumber)
Sets the rowNumber.

Parameters:
rowNumber - The rowNumber to set

getCols

public java.util.List getCols()
Returns the cols for the row.

Returns:
Vector

setCols

public void setCols(java.util.List cols)
Set the columns for the row.

Parameters:
cols - - Vector of Strings

getMdkey

public java.lang.String getMdkey()
Returns:
Returns the mdkey.

setMdkey

public void setMdkey(java.lang.String mdkey)
Parameters:
mdkey - The mdkey to set.