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 row number they appear in the flat file

Author:
Paul Zepernick

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()
           
 java.lang.String getRawData()
          Raw data used to create the columns for the row
 int getRowNumber()
          Returns the rowNumber.
 java.lang.String getValue(int colPosition)
          Returns the value of a column for a specified column name
 boolean isEmpty()
          All columns in the row are empty
 void setCols(java.util.List cols)
          Set the columns for the row.
 void setEmpty(boolean empty)
          When true, all columns in the row are empty
 void setMdkey(java.lang.String mdkey)
           
 void setRawData(java.lang.String rawData)
          Raw data used to create the columns for the row
 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.

isEmpty

public boolean isEmpty()
All columns in the row are empty

Returns:
the empty

setEmpty

public void setEmpty(boolean empty)
When true, all columns in the row are empty

Parameters:
empty - the empty to set

getRawData

public java.lang.String getRawData()
Raw data used to create the columns for the row

Returns:
the rawData

setRawData

public void setRawData(java.lang.String rawData)
Raw data used to create the columns for the row

Parameters:
rawData - the rawData to set


Copyright © 2006-2011 Appendium - Portfolio Financing Platform. All Rights Reserved.