Class SpreadsheetTable
- java.lang.Object
-
- com.orchestranetworks.addon.dex.mapping.SpreadsheetTable
-
- All Implemented Interfaces:
Table<SpreadsheetField>
public final class SpreadsheetTable extends java.lang.Object implements Table<SpreadsheetField>
Defines the configuration used for a spreadsheet table.- Since:
- 2.3.0
-
-
Constructor Summary
Constructors Constructor Description SpreadsheetTable(int sheetIndex, java.lang.String sheetName, java.util.List<SpreadsheetField> fields)SpreadsheetTable(java.lang.String sheetName, int sheetIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.List<SpreadsheetField>getFields()Returns the list ofSpreadsheetFieldfields on this table.intgetSheetIndex()Returns the specified sheet index.java.lang.StringgetSheetName()Returns the specified sheet name.inthashCode()booleanisReferenceSheetTable()Returnstrueif this is the reference sheet containing metadata such as the sheet name, the table label, and the table path used to detect the mapping between sheets and tables upon import.voidsetFields(java.util.List<SpreadsheetField> fields)Sets a list ofSpreadsheetFieldfields to this table.
-
-
-
Constructor Detail
-
SpreadsheetTable
public SpreadsheetTable(java.lang.String sheetName, int sheetIndex) throws DataExchangeException- Throws:
DataExchangeException
-
SpreadsheetTable
public SpreadsheetTable(int sheetIndex, java.lang.String sheetName, java.util.List<SpreadsheetField> fields) throws DataExchangeException- Throws:
DataExchangeException
-
-
Method Detail
-
setFields
public void setFields(java.util.List<SpreadsheetField> fields)
Sets a list ofSpreadsheetFieldfields to this table.
-
getFields
public java.util.List<SpreadsheetField> getFields()
Returns the list ofSpreadsheetFieldfields on this table.- Specified by:
getFieldsin interfaceTable<SpreadsheetField>
-
getSheetName
public java.lang.String getSheetName()
Returns the specified sheet name.
-
getSheetIndex
public int getSheetIndex()
Returns the specified sheet index.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
isReferenceSheetTable
public boolean isReferenceSheetTable()
Returnstrueif this is the reference sheet containing metadata such as the sheet name, the table label, and the table path used to detect the mapping between sheets and tables upon import.
-
-