org.pentaho.platform.dataaccess.datasource.wizard.models
Class CsvFileInfo

java.lang.Object
  extended by org.pentaho.ui.xul.XulEventSourceAdapter
      extended by org.pentaho.platform.dataaccess.datasource.wizard.models.CsvFileInfo
All Implemented Interfaces:
Serializable, org.pentaho.ui.xul.XulEventSource

public class CsvFileInfo
extends org.pentaho.ui.xul.XulEventSourceAdapter
implements Serializable

See Also:
Serialized Form

Field Summary
static String DEFAULT_COLUMN_NAME_PREFIX
           
static String DELIMITER_ATTRIBUTE
           
static String ENCLOSURE_ATTRIBUTE
           
static String ENCODING
           
static String FRIENDLY_FILENAME_ATTRIBUTE
           
static String HEADER_ROWS_ATTRIBUTE
           
static String TMP_FILENAME_ATTRIBUTE
           
 
Constructor Summary
CsvFileInfo()
           
 
Method Summary
 void clear()
           
 boolean equals(Object obj)
           
 String formatSampleContents()
           
 List<String> getContents()
           
 String getCurrencySymbol()
           
 String getDecimalSymbol()
           
 String getDelimiter()
           
 String getEnclosure()
           
 String getEncoding()
           
 String getFileName()
           
 String getFriendlyFilename()
           
 String getGroupSymbol()
           
 int getHeaderRows()
           
 String getIfNull()
           
 String getNullStr()
           
 String getProject()
           
 String getTmpFilename()
           
 int hashCode()
           
 List<List<String>> parseSampleContents()
           
 void setContents(List<String> contents)
           
 void setCurrencySymbol(String currencySymbol)
           
 void setDecimalSymbol(String decimalSymbol)
           
 void setDelimiter(String delimiter)
           
 void setEnclosure(String enclosure)
           
 void setEncoding(String encoding)
           
 void setEncodingFromServer(String encoding)
           
 void setFileName(String file)
           
 void setFriendlyFilename(String friendlyFilename)
           
 void setGroupSymbol(String groupSymbol)
           
 void setHeaderRows(int headerRows)
           
 void setIfNull(String ifNull)
           
 void setNullStr(String nullStr)
           
 void setProject(String project)
           
 void setSavedEncoding(String encoding)
           
 void setTmpFilename(String filename)
           
 
Methods inherited from class org.pentaho.ui.xul.XulEventSourceAdapter
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEADER_ROWS_ATTRIBUTE

public static final String HEADER_ROWS_ATTRIBUTE
See Also:
Constant Field Values

ENCLOSURE_ATTRIBUTE

public static final String ENCLOSURE_ATTRIBUTE
See Also:
Constant Field Values

DELIMITER_ATTRIBUTE

public static final String DELIMITER_ATTRIBUTE
See Also:
Constant Field Values

TMP_FILENAME_ATTRIBUTE

public static final String TMP_FILENAME_ATTRIBUTE
See Also:
Constant Field Values

ENCODING

public static final String ENCODING
See Also:
Constant Field Values

DEFAULT_COLUMN_NAME_PREFIX

public static final String DEFAULT_COLUMN_NAME_PREFIX
See Also:
Constant Field Values

FRIENDLY_FILENAME_ATTRIBUTE

public static final String FRIENDLY_FILENAME_ATTRIBUTE
See Also:
Constant Field Values
Constructor Detail

CsvFileInfo

public CsvFileInfo()
Method Detail

getIfNull

public String getIfNull()

setIfNull

public void setIfNull(String ifNull)

getNullStr

public String getNullStr()

setNullStr

public void setNullStr(String nullStr)

getContents

public List<String> getContents()

setContents

public void setContents(List<String> contents)

getDelimiter

public String getDelimiter()

setDelimiter

public void setDelimiter(String delimiter)

getEnclosure

public String getEnclosure()

setEnclosure

public void setEnclosure(String enclosure)

getHeaderRows

public int getHeaderRows()

setHeaderRows

public void setHeaderRows(int headerRows)

getProject

public String getProject()

setProject

public void setProject(String project)

getTmpFilename

public String getTmpFilename()

setTmpFilename

public void setTmpFilename(String filename)

getFileName

public String getFileName()

setFileName

public void setFileName(String file)

getCurrencySymbol

public String getCurrencySymbol()

setCurrencySymbol

public void setCurrencySymbol(String currencySymbol)

getDecimalSymbol

public String getDecimalSymbol()

setDecimalSymbol

public void setDecimalSymbol(String decimalSymbol)

getGroupSymbol

public String getGroupSymbol()

setGroupSymbol

public void setGroupSymbol(String groupSymbol)

getEncoding

public String getEncoding()

setEncoding

public void setEncoding(String encoding)

setEncodingFromServer

public void setEncodingFromServer(String encoding)

setSavedEncoding

public void setSavedEncoding(String encoding)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

parseSampleContents

public List<List<String>> parseSampleContents()

formatSampleContents

public String formatSampleContents()

getFriendlyFilename

public String getFriendlyFilename()

setFriendlyFilename

public void setFriendlyFilename(String friendlyFilename)

clear

public void clear()