Class ImportConf

java.lang.Object
org.nuiton.csv.ImportConf

public class ImportConf extends Object
To configure an import using the Import2.

If you do not give this object to the Import2, then it will instanciate a new one using all default values.

Since:
2.6.3
Author:
Tony Chemit - chemit@codelutin.com
  • Field Details

    • safetySwitch

      protected boolean safetySwitch
      Flag to turn or not the safetySwitch (see CsvReader.getSafetySwitch()).

      By default, not used.

    • strictMode

      protected boolean strictMode
      Flag to use a strict mode (says import will failed at the first error), if setted to false, then errors for each rows will be stored in the current row and import will continue to the end.

      By default, used (strict mode).

    • ignoreUnknownHeader

      protected boolean ignoreUnknownHeader
      Flag to ignore header found in a import file and not declared in the import model.

      By default, not used (strict mode).

    • cloneImportRow

      protected boolean cloneImportRow
      Flag to clone the import row while iterating on it. If not set then a shared instance of ImportRow is used, this means that you can't copy the iterable into a another one.
      Since:
      3.0
    • captureRawRecord

      protected boolean captureRawRecord
      Flag to ask for raw record in result.

      By default, raw record are not included.

      Since:
      3.0
  • Constructor Details

    • ImportConf

      public ImportConf()
  • Method Details

    • isSafetySwitch

      public boolean isSafetySwitch()
    • setSafetySwitch

      public void setSafetySwitch(boolean safetySwitch)
    • isStrictMode

      public boolean isStrictMode()
    • setStrictMode

      public void setStrictMode(boolean strictMode)
    • isIgnoreUnknownHeader

      public boolean isIgnoreUnknownHeader()
    • setIgnoreUnknownHeader

      public void setIgnoreUnknownHeader(boolean ignoreUnknownHeader)
    • isCloneImportRow

      public boolean isCloneImportRow()
    • setCloneImportRow

      public void setCloneImportRow(boolean cloneImportRow)
    • isCaptureRawRecord

      public boolean isCaptureRawRecord()
    • setCaptureRawRecord

      public void setCaptureRawRecord(boolean captureRawRecord)