public final class CSVImportDataExchangeHelperContext extends Object implements DataExchangeHelperContext
DataExchangeSpec
for importing CSV from the configuration declared in the {addon.label} dataset.Constructor and Description |
---|
CSVImportDataExchangeHelperContext(String preferenceName,
com.onwbp.adaptation.AdaptationTable currentTable,
com.orchestranetworks.service.Session session)
Creates a new
CSVImportDataExchangeHelperContext using the preference name. |
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 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 CSVImportDataExchangeHelperContext(String preferenceName, com.onwbp.adaptation.AdaptationTable currentTable, com.orchestranetworks.service.Session session)
CSVImportDataExchangeHelperContext
using the preference name.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 com.onwbp.adaptation.Adaptation getCurrentDataset()
getCurrentDataset
in interface DataExchangeHelperContext
public com.onwbp.adaptation.AdaptationTable getCurrentTable()
getCurrentTable
in interface DataExchangeHelperContext
public com.orchestranetworks.service.Session getSession()
getSession
in interface DataExchangeHelperContext
public ServiceType getServiceType()
getServiceType
in interface DataExchangeHelperContext
public String getPreferenceName()
public File getImportedFile()
public void setImportedFile(File importedFile)