planetj.helpers
Class FileDescriptor

java.lang.Object
  |
  +--planetj.helpers.FileDescriptor
Direct Known Subclasses:
CSVFileDescriptor, FDFFileDescriptor, HTMLReportFileDescriptor, IIFFileDescriptor, MSAccessDescriptor, PDFFileDescriptor, QIFFileDescriptor, XMLFileDescriptor

public class FileDescriptor
extends Object

FileDescriptor holds common/generic attributes about a file. FileDescriptor is to only be created via planetj.helpers.Helper.newFileDescriptor(); Creation date: (1/21/2002 7:16:24 PM)


Field Summary
static byte COLUMN_HEADINGS_EXTERNAL
          Use external names for column headings
static byte COLUMN_HEADINGS_INTERNAL
          Use internal column headings
static byte COLUMN_HEADINGS_NONE
          Do not use column headings
static char OUTPUT_ROWS_ALL
          Display all rows which meet the current criteria
static char OUTPUT_ROWS_SCREEN
          Output all rows on the current screen
static char OUTPUT_ROWS_SELECTED
          Output only rows which have been selected by the user
 
Method Summary
 byte getColumnHeadingsDisplayType()
          Gets the type of column headings to display
 List getDisplayColumns()
          Gets the names of the columns to display.
 String getFileName()
          Returns the file name of the CSV file
 char getOutputRowType()
          Describes which rows should be output
 String getPassword()
          Insert the method's description here.
 String getSystemName()
          Insert the method's description here.
 String getUserId()
          Insert the method's description here.
 boolean isAppendToFile()
          If the file exists, should we append to that file? Creation date: (12/4/2001 10:24:08 PM)
 void setAppendToFile(boolean newAppendToFile)
          If you want the existing CSV file to simply be appended to, set this value to true Defaults to false Creation date: (12/4/2001 10:24:08 PM)
 void setColumnHeadingsDisplayType(byte newColumnHeadingsDisplay)
          Gets the type of column headings to display
 void setDisplayColumns(List columnNames)
          Sets the names of the columns to display.
 void setFileName(String newFileName)
          This must be the qualified file name (i.e.
 void setOutputRowType(char newOutputRowType)
          Describes which rows should be output
 void setPassword(String newPassword)
          Insert the method's description here.
 void setSystemName(String newSystemName)
          Insert the method's description here.
 void setUserId(String newUserId)
          Insert the method's description here.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLUMN_HEADINGS_NONE

public static final byte COLUMN_HEADINGS_NONE
Do not use column headings

See Also:
Constant Field Values

COLUMN_HEADINGS_INTERNAL

public static final byte COLUMN_HEADINGS_INTERNAL
Use internal column headings

See Also:
Constant Field Values

COLUMN_HEADINGS_EXTERNAL

public static final byte COLUMN_HEADINGS_EXTERNAL
Use external names for column headings

See Also:
Constant Field Values

OUTPUT_ROWS_ALL

public static final char OUTPUT_ROWS_ALL
Display all rows which meet the current criteria

See Also:
Constant Field Values

OUTPUT_ROWS_SCREEN

public static final char OUTPUT_ROWS_SCREEN
Output all rows on the current screen

See Also:
Constant Field Values

OUTPUT_ROWS_SELECTED

public static final char OUTPUT_ROWS_SELECTED
Output only rows which have been selected by the user

See Also:
Constant Field Values
Method Detail

getColumnHeadingsDisplayType

public byte getColumnHeadingsDisplayType()
Gets the type of column headings to display


getDisplayColumns

public List getDisplayColumns()
Gets the names of the columns to display. If this is null, then all columns should be displayed.


getFileName

public String getFileName()
Returns the file name of the CSV file

If there is no file name specified in here or mFileName is null, then the caller did not want to have a file created, because maybe they may want to display the CSV StringBuffer in a browser or do more analysis of it.

Creation date: (12/4/2001 10:24:08 PM)

Returns:
java.lang.String

getOutputRowType

public char getOutputRowType()
Describes which rows should be output


getPassword

public String getPassword()
Insert the method's description here. Creation date: (4/23/2002 10:40:11 AM)

Returns:
java.lang.String

getSystemName

public String getSystemName()
Insert the method's description here. Creation date: (4/23/2002 10:40:11 AM)

Returns:
java.lang.String

getUserId

public String getUserId()
Insert the method's description here. Creation date: (4/23/2002 10:40:11 AM)

Returns:
java.lang.String

isAppendToFile

public boolean isAppendToFile()
If the file exists, should we append to that file? Creation date: (12/4/2001 10:24:08 PM)

Returns:
boolean true will append to existing file, false will start with a fresh file.

setAppendToFile

public void setAppendToFile(boolean newAppendToFile)
If you want the existing CSV file to simply be appended to, set this value to true Defaults to false Creation date: (12/4/2001 10:24:08 PM)

Parameters:
newAppendToFile - boolean

setColumnHeadingsDisplayType

public void setColumnHeadingsDisplayType(byte newColumnHeadingsDisplay)
Gets the type of column headings to display


setDisplayColumns

public void setDisplayColumns(List columnNames)
Sets the names of the columns to display. If this is null, then all columns should be displayed.


setFileName

public void setFileName(String newFileName)
This must be the qualified file name (i.e. C:\\Temp\\Test.csv)

If there is no file name specified in here or mFileName is null, then the caller did not want to have a file created, because maybe they may want to display the CSV StringBuffer in a browser or do more analysis of it.

Creation date: (12/4/2001 10:24:08 PM)

Parameters:
newFileName - java.lang.String

setOutputRowType

public void setOutputRowType(char newOutputRowType)
Describes which rows should be output


setPassword

public void setPassword(String newPassword)
Insert the method's description here. Creation date: (4/23/2002 10:40:11 AM)

Parameters:
newPassword - java.lang.String

setSystemName

public void setSystemName(String newSystemName)
Insert the method's description here. Creation date: (4/23/2002 10:40:11 AM)

Parameters:
newSystemName - java.lang.String

setUserId

public void setUserId(String newUserId)
Insert the method's description here. Creation date: (4/23/2002 10:40:11 AM)

Parameters:
newUserId - java.lang.String