Class CSVColumn
java.lang.Object
ca.phon.app.csv.CSVColumn
Represents a column in a CSV file with associated metadata and options.
Each column has a type, index, and configurable options.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the column type.intGet the CSV column index.getId()Get the unique identifier for this column.Get an option value for this column.voidsetColumnType(CSVColumnType columnType) Set the column type.voidsetCsvColumnIndex(int csvColumnIndex) Set the CSV column index.voidsetImportThisColumn(boolean importThisColumn) Set whether this column should be imported.voidSet an option value for this column.booleanCheck if this column should be imported.
-
Constructor Details
-
CSVColumn
public CSVColumn()
-
-
Method Details
-
getCsvColumnIndex
public int getCsvColumnIndex()Get the CSV column index.- Returns:
- the column index
-
setCsvColumnIndex
public void setCsvColumnIndex(int csvColumnIndex) Set the CSV column index.- Parameters:
csvColumnIndex- the column index
-
getColumnType
-
setColumnType
Set the column type.- Parameters:
columnType- the column type
-
shouldImportThisColumn
public boolean shouldImportThisColumn()Check if this column should be imported.- Returns:
- true if the column should be imported
-
setImportThisColumn
public void setImportThisColumn(boolean importThisColumn) Set whether this column should be imported.- Parameters:
importThisColumn- true if the column should be imported
-
getId
-
setOption
-
getOption
-