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 boolean
equals(java.lang.Object obj)
java.util.List<SpreadsheetField>
getFields()
Returns the list ofSpreadsheetField
fields on this table.int
getSheetIndex()
Returns the specified sheet index.java.lang.String
getSheetName()
Returns the specified sheet name.int
hashCode()
boolean
isReferenceSheetTable()
Returnstrue
if 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.void
setFields(java.util.List<SpreadsheetField> fields)
Sets a list ofSpreadsheetField
fields 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 ofSpreadsheetField
fields to this table.
-
getFields
public java.util.List<SpreadsheetField> getFields()
Returns the list ofSpreadsheetField
fields on this table.- Specified by:
getFields
in 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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
isReferenceSheetTable
public boolean isReferenceSheetTable()
Returnstrue
if 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.
-
-