Interface IFormatParameterValues
Supplies the parsed value of each IFormatParameter a factory declared.
public interface IFormatParameterValues
Remarks
Authored for NOpenNLP; not part of the Apache OpenNLP source. It stands in for the
dynamic proxy upstream's ArgumentParser.parse returns: where upstream calls
params.getData() on a generated implementation of an annotated interface, a
ported factory calls Get<T>(IFormatParameter) with the parameter it declared. Keeping this
an interface lets the CLI back it with a System.CommandLine parse result while the
library stays free of that dependency, and lets tests supply values directly.
Methods
Get<T>(IFormatParameter)
Returns the parsed value of parameter, which is the default
when the user omitted an optional parameter.
T? Get<T>(IFormatParameter parameter)
Parameters
parameterIFormatParametera parameter this factory declared
Returns
- T
Type Parameters
Tthe parameter's value type