planetj.helpers
Interface ICSVRow

All Known Implementing Classes:
Row

public interface ICSVRow

Interface defining methods required to generate CSVFiles from any object Creation date: (12/4/2001 7:18:45 PM)


Method Summary
 List getCSVRow()
          Returns a List of Fields that implement ICSVField or a list of Objects that provide a toString method which returns the desired text to be written to the CSV file.
 List getCSVRow(List fieldNames)
          Returns a List of Fields that implement ICSVField or a list of Objects that provide a toString method which returns the desired text to be written to the CSV file.
 

Method Detail

getCSVRow

public List getCSVRow()
Returns a List of Fields that implement ICSVField or a list of Objects that provide a toString method which returns the desired text to be written to the CSV file. Each row has a List of fields. Below is an example would return a List that has 5 elements (5 rows). Each row is a List with 2 elements (2 fields).

Tyler,Holm Justin,Epstein Paul,Holm Wes,King Nate,Levis

Creation date: (12/5/2001 1:52:02 AM)

Returns:
java.util.List that is unmodifiable

getCSVRow

public List getCSVRow(List fieldNames)
Returns a List of Fields that implement ICSVField or a list of Objects that provide a toString method which returns the desired text to be written to the CSV file. Each row has a List of fields. Below is an example would return a List that has 5 elements (5 rows). Each row is a List with 2 elements (2 fields).

Tyler,Holm Justin,Epstein Paul,Holm Wes,King Nate,Levis

Parameters:
fieldNames - Only the fields specified by the names in this argument should be returned in the List Creation date: (12/5/2001 1:52:02 AM)
Returns:
java.util.List that is unmodifiable