public class SpreadsheetImportConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SpreadsheetImportConfiguration.Mapping |
Constructor and Description |
---|
SpreadsheetImportConfiguration()
Constructs a new SpreadsheetImportConfiguration.
|
SpreadsheetImportConfiguration(SpreadsheetImportConfiguration configuration)
Constructs a new SpreadsheetImportConfiguration that copies the values from the given
configuration.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Map<String,String> |
getColumnNames()
Returns the columnNames.
|
Range |
getColumnRange()
Returns the columnRange.
|
String |
getCsvDelimiter()
Returns the delimiter for CSV formatted output.
|
SpreadsheetEmptyCellPolicy |
getEmptyCellPolicy()
Returns the emptyCellPolicy.
|
String |
getEmptyCellValue()
Returns the emptyCellValue.
|
SpreadsheetOutputFormat |
getOutputFormat()
Returns the outputFormat.
|
Range |
getRowRange()
Returns the rowRange.
|
int |
hashCode() |
boolean |
isAllRows()
Returns the allRows property.
|
boolean |
isExcludeFirstRow()
Returns the excludeFirstRow property.
|
boolean |
isIgnoreBlankRows()
Returns the ignoreBlankRows property.
|
void |
setAllRows(boolean allRows)
Sets the allRows property.
|
void |
setColumnNames(Map<String,String> columnNames)
Sets the columnNames.
|
void |
setColumnNames(Set<SpreadsheetImportConfiguration.Mapping> columnNames)
Sets the columnNames.
|
void |
setColumnRange(Range columnRange)
Sets the columnRange.
|
void |
setCsvDelimiter(String csvDelimiter)
Sets the delimiter for CSV formatted output.
|
void |
setEmptyCellPolicy(SpreadsheetEmptyCellPolicy emptyCellPolicy)
Sets the emptyCellPolicy.
|
void |
setEmptyCellValue(String emptyCellValue)
Sets the emptyCellValue.
|
void |
setExcludeFirstRow(boolean excludeFirstRow)
Sets the excludeFirstRow property.
|
void |
setIgnoreBlankRows(boolean ignoreBlankRows)
Sets the ignoreBlankRows property.
|
void |
setOutputFormat(SpreadsheetOutputFormat outputFormat)
Sets the outputFormat.
|
void |
setRowRange(Range rowRange)
Sets the rowRange.
|
public SpreadsheetImportConfiguration()
public SpreadsheetImportConfiguration(SpreadsheetImportConfiguration configuration)
configuration
- public Range getColumnRange()
public void setColumnRange(Range columnRange)
columnRange
- the new value for columnRangepublic Range getRowRange()
public void setRowRange(Range rowRange)
rowRange
- the new value for rowRangepublic String getEmptyCellValue()
public void setEmptyCellValue(String emptyCellValue)
emptyCellValue
- the new value for emptyCellValuepublic Map<String,String> getColumnNames()
public void setColumnNames(Map<String,String> columnNames)
columnNames
- the new value for columnNamespublic void setColumnNames(Set<SpreadsheetImportConfiguration.Mapping> columnNames)
columnNames
- the new value for columnNamespublic boolean isAllRows()
true
.public void setAllRows(boolean allRows)
allRows
- the new value for allRowspublic boolean isExcludeFirstRow()
false
.public void setExcludeFirstRow(boolean excludeFirstRow)
excludeFirstRow
- the new value for excludeFirstRowpublic boolean isIgnoreBlankRows()
false
.public void setIgnoreBlankRows(boolean ignoreBlankRows)
ignoreBlankRows
- the new value for ignoreBlankRowspublic SpreadsheetEmptyCellPolicy getEmptyCellPolicy()
SpreadsheetEmptyCellPolicy.EMPTY_STRING
.public void setEmptyCellPolicy(SpreadsheetEmptyCellPolicy emptyCellPolicy)
emptyCellPolicy
- the new value for emptyCellPolicypublic SpreadsheetOutputFormat getOutputFormat()
SpreadsheetOutputFormat.PORT_PER_COLUMN
.public void setOutputFormat(SpreadsheetOutputFormat outputFormat)
outputFormat
- the new value for outputFormatpublic String getCsvDelimiter()
","
.public void setCsvDelimiter(String csvDelimiter)
outputFormat
- the new delimiter for CSV formatted outputCopyright © 2015–2016 The Apache Software Foundation. All rights reserved.