Class ImportConf
java.lang.Object
org.nuiton.csv.ImportConf
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanFlag to ask for raw record in result.protected booleanFlag to clone the import row while iterating on it.protected booleanFlag to ignore header found in a import file and not declared in the import model.protected booleanFlag to turn or not the safetySwitch (seeCsvReader.getSafetySwitch()).protected booleanFlag to use a strict mode (says import will failed at the first error), if setted tofalse, then errors for each rows will be stored in the current row and import will continue to the end. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanbooleanvoidsetCaptureRawRecord(boolean captureRawRecord) voidsetCloneImportRow(boolean cloneImportRow) voidsetIgnoreUnknownHeader(boolean ignoreUnknownHeader) voidsetSafetySwitch(boolean safetySwitch) voidsetStrictMode(boolean strictMode)
-
Field Details
-
safetySwitch
protected boolean safetySwitchFlag to turn or not the safetySwitch (seeCsvReader.getSafetySwitch()).By default, not used.
-
strictMode
protected boolean strictModeFlag to use a strict mode (says import will failed at the first error), if setted tofalse, 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 ignoreUnknownHeaderFlag to ignore header found in a import file and not declared in the import model.By default, not used (strict mode).
-
cloneImportRow
protected boolean cloneImportRowFlag 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 captureRawRecordFlag 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)
-