public final class SpreadsheetImportDataExchangeHelperContext extends Object implements DataExchangeHelperContext
DataExchangeSpec for importing Excel from the configuration declared in the {addon.label} dataset.| Constructor and Description |
|---|
SpreadsheetImportDataExchangeHelperContext(String preferenceName,
com.onwbp.adaptation.Adaptation currentDataset,
com.orchestranetworks.service.Session session)
Creates a new
SpreadsheetImportDataExchangeHelperContext using the preference name when importing multiple tables. |
SpreadsheetImportDataExchangeHelperContext(String preferenceName,
com.onwbp.adaptation.AdaptationTable currentTable,
com.orchestranetworks.service.Session session)
Creates a new
SpreadsheetImportDataExchangeHelperContext using the preference name when importing a single table. |
| Modifier and Type | Method and Description |
|---|---|
com.onwbp.adaptation.Adaptation |
getCurrentDataset()
Returns the current dataset.
|
com.onwbp.adaptation.AdaptationTable |
getCurrentTable()
Returns the current table.
|
File |
getImportedFile()
Returns the imported file.
|
String |
getPreferenceName()
Returns the specified preference name declared in the Namefield of the Application interface preference table in the {addon.label} dataset.
|
ServiceType |
getServiceType()
Returns the specified service type.
|
com.orchestranetworks.service.Session |
getSession()
Returns the current session.
|
void |
setImportedFile(File importedFile)
Sets an imported file to the specified value.
|
public SpreadsheetImportDataExchangeHelperContext(String preferenceName, com.onwbp.adaptation.AdaptationTable currentTable, com.orchestranetworks.service.Session session)
SpreadsheetImportDataExchangeHelperContext using the preference name when importing a single table.preferenceName - the preference name is declared in Name field of the Application interface preference table in the {addon.label} dataset.currentTable - the current table.session - the current session.public SpreadsheetImportDataExchangeHelperContext(String preferenceName, com.onwbp.adaptation.Adaptation currentDataset, com.orchestranetworks.service.Session session)
SpreadsheetImportDataExchangeHelperContext using the preference name when importing multiple tables.preferenceName - the preference name is declared in Namefield of the Application interface preference table in the {addon.label} dataset.currentDataset - the current dataset.session - the current session.public com.onwbp.adaptation.Adaptation getCurrentDataset()
getCurrentDataset in interface DataExchangeHelperContextpublic com.onwbp.adaptation.AdaptationTable getCurrentTable()
getCurrentTable in interface DataExchangeHelperContextpublic com.orchestranetworks.service.Session getSession()
getSession in interface DataExchangeHelperContextpublic ServiceType getServiceType()
getServiceType in interface DataExchangeHelperContextpublic String getPreferenceName()
public File getImportedFile()
public void setImportedFile(File importedFile)