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