Package com.ads.api.beans.common
Class ImportHelper
java.lang.Object
com.ads.api.beans.common.ImportHelper
- Direct Known Subclasses:
CatalogImportHelper
This class provides some beans control methods related to filePath,
filePathType and its details.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the file pathReturns the path type of the given file.i.e ABSOLUTE OR RELATIVEReturns the headerString of the given file.booleanReturns the treatFirstRowAsHeader of the given file as true or false.voidsetFilePath(String filePath) Method sets the file path as specified.voidsetFilePathType(APIConstants.FilePathType filePathType) Method sets the path type for the specified file.voidsetHeaderString(String headerString) Method sets the headerString for the specified filevoidsetTreatFirstRowAsHeader(boolean treatFirstRowAsHeader) Method sets the treatFirstRowAsHeader value for the specified file.
-
Constructor Details
-
ImportHelper
public ImportHelper()
-
-
Method Details
-
getFilePath
Returns the file path- Returns:
- String - filePath
-
setFilePath
Method sets the file path as specified.- Parameters:
filePath- String
-
getFilePathType
Returns the path type of the given file.i.e ABSOLUTE OR RELATIVE- Returns:
- Enum - FilePathType
-
setFilePathType
Method sets the path type for the specified file.- Parameters:
filePathType- - Enum : Valid values are ABSOLUTE/RELATIVE
-
getHeaderString
Returns the headerString of the given file.- Returns:
- headerString - String
-
setHeaderString
Method sets the headerString for the specified file- Parameters:
headerString- - String
-
isTreatFirstRowAsHeader
public boolean isTreatFirstRowAsHeader()Returns the treatFirstRowAsHeader of the given file as true or false.- Returns:
- treatFirstRowAsHeader - boolean
-
setTreatFirstRowAsHeader
public void setTreatFirstRowAsHeader(boolean treatFirstRowAsHeader) Method sets the treatFirstRowAsHeader value for the specified file.- Parameters:
treatFirstRowAsHeader- boolean
-