Class ImportHelper
java.lang.Object
ch.tocco.nice2.optional.qualification.impl.util.entities.inputtypes.ImportHelper
-
Constructor Summary
ConstructorsConstructorDescriptionImportHelper
(TextResources textResources, Input input, QueryBuilderFactory queryBuilderFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMessage
(ImporterMessage message) @Nullable BigDecimal
getBigDecimalFromString
(String value) getBooleanFromString
(String value) int
static String
getStringCellValue
(org.apache.poi.ss.usermodel.Cell cell) boolean
validateDispense
(String id, String dispense) boolean
validateGradeValue
(String id, String grade, String label) boolean
validateGradeValueWithTextResource
(String id, String grade, String textResourceKey) boolean
validateNumber
(String id, String grade, String label) boolean
validateNumberOfRatings
(String id, int numberOfCells) boolean
validateTextChoice
(String id, String value, Set<Entity> target)
-
Constructor Details
-
ImportHelper
public ImportHelper(TextResources textResources, Input input, QueryBuilderFactory queryBuilderFactory)
-
-
Method Details
-
getStringCellValue
-
validateGradeValueWithTextResource
-
validateGradeValue
-
validateNumber
-
validateDispense
-
validateTextChoice
-
validateNumberOfRatings
-
getBigDecimalFromString
-
getBooleanFromString
-
getNumRatings
public int getNumRatings() -
addMessage
-
getMessages
-