@Test public void testSpreadsheetImportConfiguration() { assertNotNull(configuration); assertEquals(new Range(0, 1), configuration.getColumnRange()); assertEquals(new Range(0, -1), configuration.getRowRange()); assertEquals("", configuration.getEmptyCellValue()); assertEquals(SpreadsheetEmptyCellPolicy.EMPTY_STRING, configuration.getEmptyCellPolicy()); assertEquals(SpreadsheetOutputFormat.PORT_PER_COLUMN, configuration.getOutputFormat()); assertEquals(Collections.EMPTY_MAP, configuration.getColumnNames()); assertEquals(true, configuration.isAllRows()); assertEquals(false, configuration.isExcludeFirstRow()); assertEquals(false, configuration.isIgnoreBlankRows()); }
public SpreadsheetImportConfiguration() { columnRange = new Range(0, 1); rowRange = new Range(0, -1); emptyCellValue = ""; columnNames = new HashMap<String, String>(); allRows = true; excludeFirstRow = false; ignoreBlankRows = false; emptyCellPolicy = SpreadsheetEmptyCellPolicy.EMPTY_STRING; outputFormat = SpreadsheetOutputFormat.PORT_PER_COLUMN; csvDelimiter = ","; }
SpreadsheetImportConfiguration { public SpreadsheetImportConfiguration() { columnRange = new Range(0, 1); rowRange = new Range(0, -1); emptyCellValue = ""; columnNames = new HashMap<String, String>(); allRows = true; excludeFirstRow = false; ignoreBlankRows = false; emptyCellPolicy = SpreadsheetEmptyCellPolicy.EMPTY_STRING; outputFormat = SpreadsheetOutputFormat.PORT_PER_COLUMN; csvDelimiter = ","; } }
SpreadsheetImportConfiguration { public SpreadsheetImportConfiguration() { columnRange = new Range(0, 1); rowRange = new Range(0, -1); emptyCellValue = ""; columnNames = new HashMap<String, String>(); allRows = true; excludeFirstRow = false; ignoreBlankRows = false; emptyCellPolicy = SpreadsheetEmptyCellPolicy.EMPTY_STRING; outputFormat = SpreadsheetOutputFormat.PORT_PER_COLUMN; csvDelimiter = ","; } SpreadsheetImportConfiguration();  SpreadsheetImportConfiguration(SpreadsheetImportConfiguration configuration); }
SpreadsheetImportConfiguration { public SpreadsheetImportConfiguration() { columnRange = new Range(0, 1); rowRange = new Range(0, -1); emptyCellValue = ""; columnNames = new HashMap<String, String>(); allRows = true; excludeFirstRow = false; ignoreBlankRows = false; emptyCellPolicy = SpreadsheetEmptyCellPolicy.EMPTY_STRING; outputFormat = SpreadsheetOutputFormat.PORT_PER_COLUMN; csvDelimiter = ","; } SpreadsheetImportConfiguration();  SpreadsheetImportConfiguration(SpreadsheetImportConfiguration configuration); Range getColumnRange(); @ConfigurationProperty(name = "columnRange", label = "Column Range", description = "The range of columns to be imported (e.g. columns 2 to 7") void setColumnRange(Range columnRange); Range getRowRange(); @ConfigurationProperty(name = "rowRange", label = "Row Range", description = "The range of rows to be imported (e.g. rows 1 to 15", required = false) void setRowRange(Range rowRange); String getEmptyCellValue(); @ConfigurationProperty(name = "emptyCellValue", label = "Empty Cell Value", description = "The value to use for empty cells. The default is \"\"", required = false) void setEmptyCellValue(String emptyCellValue); Map<String, String> getColumnNames(); void setColumnNames(Map<String, String> columnNames); @ConfigurationProperty(name = "columnNames", label = "Column Name Mapping", description = "Mapping from column to port names", required = false) void setColumnNames(Set<Mapping> columnNames); boolean isAllRows(); @ConfigurationProperty(name = "allRows", label = "Import All Rows", description = "Imports all the rows containing data", required = false) void setAllRows(boolean allRows); boolean isExcludeFirstRow(); @ConfigurationProperty(name = "excludeFirstRow", label = "Exclude First Row", description = "Excludes the first row from the import", required = false) void setExcludeFirstRow(boolean excludeFirstRow); boolean isIgnoreBlankRows(); @ConfigurationProperty(name = "ignoreBlankRows", label = "Ignore Blank Rows", description = "Excludes blank rows from the import", required = false) void setIgnoreBlankRows(boolean ignoreBlankRows); SpreadsheetEmptyCellPolicy getEmptyCellPolicy(); @ConfigurationProperty(name = "emptyCellPolicy", label = "Empty Cell Policy", description = "Policy for handling empty cells", required = false) void setEmptyCellPolicy(SpreadsheetEmptyCellPolicy emptyCellPolicy); SpreadsheetOutputFormat getOutputFormat(); @ConfigurationProperty(name = "outputFormat", label = "Output Format", description = "How the activity outputs are to be formatted", required = false) void setOutputFormat(SpreadsheetOutputFormat outputFormat); String getCsvDelimiter(); @ConfigurationProperty(name = "csvDelimiter", label = "CSV Delimiter", description = "The delimiter to use for CSV input files. The default is ','", required = false) void setCsvDelimiter(String csvDelimiter); @Override int hashCode(); @Override boolean equals(Object obj); }
SpreadsheetImportConfiguration { public SpreadsheetImportConfiguration() { columnRange = new Range(0, 1); rowRange = new Range(0, -1); emptyCellValue = ""; columnNames = new HashMap<String, String>(); allRows = true; excludeFirstRow = false; ignoreBlankRows = false; emptyCellPolicy = SpreadsheetEmptyCellPolicy.EMPTY_STRING; outputFormat = SpreadsheetOutputFormat.PORT_PER_COLUMN; csvDelimiter = ","; } SpreadsheetImportConfiguration();  SpreadsheetImportConfiguration(SpreadsheetImportConfiguration configuration); Range getColumnRange(); @ConfigurationProperty(name = "columnRange", label = "Column Range", description = "The range of columns to be imported (e.g. columns 2 to 7") void setColumnRange(Range columnRange); Range getRowRange(); @ConfigurationProperty(name = "rowRange", label = "Row Range", description = "The range of rows to be imported (e.g. rows 1 to 15", required = false) void setRowRange(Range rowRange); String getEmptyCellValue(); @ConfigurationProperty(name = "emptyCellValue", label = "Empty Cell Value", description = "The value to use for empty cells. The default is \"\"", required = false) void setEmptyCellValue(String emptyCellValue); Map<String, String> getColumnNames(); void setColumnNames(Map<String, String> columnNames); @ConfigurationProperty(name = "columnNames", label = "Column Name Mapping", description = "Mapping from column to port names", required = false) void setColumnNames(Set<Mapping> columnNames); boolean isAllRows(); @ConfigurationProperty(name = "allRows", label = "Import All Rows", description = "Imports all the rows containing data", required = false) void setAllRows(boolean allRows); boolean isExcludeFirstRow(); @ConfigurationProperty(name = "excludeFirstRow", label = "Exclude First Row", description = "Excludes the first row from the import", required = false) void setExcludeFirstRow(boolean excludeFirstRow); boolean isIgnoreBlankRows(); @ConfigurationProperty(name = "ignoreBlankRows", label = "Ignore Blank Rows", description = "Excludes blank rows from the import", required = false) void setIgnoreBlankRows(boolean ignoreBlankRows); SpreadsheetEmptyCellPolicy getEmptyCellPolicy(); @ConfigurationProperty(name = "emptyCellPolicy", label = "Empty Cell Policy", description = "Policy for handling empty cells", required = false) void setEmptyCellPolicy(SpreadsheetEmptyCellPolicy emptyCellPolicy); SpreadsheetOutputFormat getOutputFormat(); @ConfigurationProperty(name = "outputFormat", label = "Output Format", description = "How the activity outputs are to be formatted", required = false) void setOutputFormat(SpreadsheetOutputFormat outputFormat); String getCsvDelimiter(); @ConfigurationProperty(name = "csvDelimiter", label = "CSV Delimiter", description = "The delimiter to use for CSV input files. The default is ','", required = false) void setCsvDelimiter(String csvDelimiter); @Override int hashCode(); @Override boolean equals(Object obj);  }