public final class ExcelConfiguration extends BaseObject implements Serializable
ExcelDataContext
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
DEFAULT_COLUMN_NAME_LINE |
static int |
DEFAULT_NUMBERS_OF_LINES_TO_SCAN |
static int |
NO_COLUMN_NAME_LINE |
Constructor and Description |
---|
ExcelConfiguration() |
ExcelConfiguration(int columnNameLineNumber,
boolean skipEmptyLines,
boolean skipEmptyColumns) |
ExcelConfiguration(int columnNameLineNumber,
ColumnNamingStrategy columnNamingStrategy,
boolean skipEmptyLines,
boolean skipEmptyColumns) |
ExcelConfiguration(int columnNameLineNumber,
ColumnNamingStrategy columnNamingStrategy,
boolean skipEmptyLines,
boolean skipEmptyColumns,
boolean detectColumnTypes,
int numberOfLinesToScan) |
Modifier and Type | Method and Description |
---|---|
protected void |
decorateIdentity(List<Object> identifiers)
Subclasses should implement this method and add all fields to the list
that are to be included in equals(...) and hashCode() evaluation
|
int |
getColumnNameLineNumber()
The line number (1 based) from which to get the names of the columns.
|
ColumnNamingStrategy |
getColumnNamingStrategy()
Gets a
ColumnNamingStrategy to use if needed. |
int |
getNumberOfLinesToScan()
The number of lines to scan when detecting the column types
|
boolean |
isDetectColumnTypes()
Defines if columns in the excel spreadsheet should be detected on data types while reading the spreadsheet.
|
boolean |
isSkipEmptyColumns()
Defines if empty columns in the excel spreadsheet should be skipped while
reading the spreadsheet.
|
boolean |
isSkipEmptyLines()
Defines if empty lines in the excel spreadsheet should be skipped while
reading the spreadsheet.
|
String |
toString() |
classEquals, equals, hashCode
public static final int NO_COLUMN_NAME_LINE
public static final int DEFAULT_COLUMN_NAME_LINE
public static final int DEFAULT_NUMBERS_OF_LINES_TO_SCAN
public ExcelConfiguration()
public ExcelConfiguration(int columnNameLineNumber, boolean skipEmptyLines, boolean skipEmptyColumns)
public ExcelConfiguration(int columnNameLineNumber, ColumnNamingStrategy columnNamingStrategy, boolean skipEmptyLines, boolean skipEmptyColumns)
public ExcelConfiguration(int columnNameLineNumber, ColumnNamingStrategy columnNamingStrategy, boolean skipEmptyLines, boolean skipEmptyColumns, boolean detectColumnTypes, int numberOfLinesToScan)
public ColumnNamingStrategy getColumnNamingStrategy()
ColumnNamingStrategy
to use if needed.public int getColumnNameLineNumber()
public boolean isSkipEmptyLines()
public boolean isSkipEmptyColumns()
public boolean isDetectColumnTypes()
public int getNumberOfLinesToScan()
protected void decorateIdentity(List<Object> identifiers)
BaseObject
decorateIdentity
in class BaseObject
public String toString()
toString
in class BaseObject
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.