Class DurationImportConverter
java.lang.Object
ch.tocco.nice2.entityoperation.impl.importer.converters.DurationImportConverter
- All Implemented Interfaces:
ImportConverter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvertCell
(org.apache.poi.ss.usermodel.Cell input) convertString
(String input) Parses a string and returns the duration in milliseconds.getType()
-
Constructor Details
-
DurationImportConverter
public DurationImportConverter()
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceImportConverter
-
convertString
Parses a string and returns the duration in milliseconds. Accepts the following formats: - hours - hours:minutes - hours:minutes:seconds - hours:minutes:seconds:milliseconds- Specified by:
convertString
in interfaceImportConverter
- Throws:
ImportConverterException
-
convertCell
- Specified by:
convertCell
in interfaceImportConverter
- Throws:
ImportConverterException
-