Class CSVColumn

java.lang.Object
ca.phon.app.csv.CSVColumn

public class CSVColumn extends Object
Represents a column in a CSV file with associated metadata and options. Each column has a type, index, and configurable options.
  • 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

      public CSVColumnType getColumnType()
      Get the column type.
      Returns:
      the column type
    • setColumnType

      public void setColumnType(CSVColumnType columnType)
      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

      public String getId()
      Get the unique identifier for this column.
      Returns:
      the unique ID
    • setOption

      public void setOption(String name, String value)
      Set an option value for this column.
      Parameters:
      name - the option name
      value - the option value
    • getOption

      public String getOption(String name)
      Get an option value for this column.
      Parameters:
      name - the option name
      Returns:
      the option value, or null if not set