Class ImportRow<E>
java.lang.Object
org.nuiton.csv.ImportRow<E>
Object to box a row to import.
It contains all the context for the current row to import.
- Since:
- 2.6.3
- Author:
- Tony Chemit - chemit@codelutin.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ECurrent bean loaded by the import tool for the current row.protected Set<AbstractImportErrorInfo<E>> Errors found while loading the row into the bean.protected longCurrent line number.protected booleanprotected com.google.common.base.Optional<String> The source data. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddError(AbstractImportErrorInfo<E> error) getBean()longcom.google.common.base.Optional<String> booleanhasNext()booleanisValid()voidprepareNextRow(E bean) voidsetLineNumber(long lineNumber) voidsetNext(boolean next) voidsetRawRecord(String rawRecord) toString()
-
Field Details
-
lineNumber
protected long lineNumberCurrent line number. -
bean
Current bean loaded by the import tool for the current row. -
errors
Errors found while loading the row into the bean. -
next
protected boolean next -
rawRecord
The source data. May be empty ifImportConf.captureRawRecordis false. When project will be Java8 based, use Java8 Optional
-
-
Constructor Details
-
ImportRow
-
ImportRow
public ImportRow()
-
-
Method Details
-
getLineNumber
public long getLineNumber() -
getBean
-
getErrors
-
isValid
public boolean isValid() -
hasNext
public boolean hasNext() -
setNext
public void setNext(boolean next) -
setLineNumber
public void setLineNumber(long lineNumber) -
addError
-
prepareNextRow
-
getRawRecord
-
setRawRecord
-
toString
-