Package net.starype.quiz.api.parser
Class CleanSeparatorProcessorMapper
- java.lang.Object
-
- net.starype.quiz.api.parser.CleanSeparatorProcessorMapper
-
- All Implemented Interfaces:
ConfigMapper<AnswerProcessor>
public class CleanSeparatorProcessorMapper extends java.lang.Object implements ConfigMapper<AnswerProcessor>
Mapper for theCleanSeparatorProcessor
object
-
-
Constructor Summary
Constructors Constructor Description CleanSeparatorProcessorMapper()
-
Method Summary
Modifier and Type Method Description java.lang.String
getMapperName()
AnswerProcessor
map(ReadableMap config)
Produce a result of a specific type.
-
-
-
Method Detail
-
getMapperName
public java.lang.String getMapperName()
- Specified by:
getMapperName
in interfaceConfigMapper<AnswerProcessor>
- Returns:
- the value that may match a key from a TOML configuration file
-
map
public AnswerProcessor map(ReadableMap config)
Description copied from interface:ConfigMapper
Produce a result of a specific type.
The configuration object may be used to gather additional information required to construct the object.- Specified by:
map
in interfaceConfigMapper<AnswerProcessor>
- Parameters:
config
- the configuration object loaded from the file- Returns:
- a result representing the value
-
-