Top Description Methods
com.beust.jcommander

public Interface IStringConverterInstanceFactory


A factory to create IStringConverter instances. This interface lets you specify your converters in one place instead of having them repeated all over your argument classes.
Author
simon04
See Also
IStringConverterFactory

Method Summary

Modifier and TypeMethod and Description
public IStringConverter<?>

Returns:

a converter instance
getConverterInstance
(Parameter
the parameter to parse
parameter
,
Class<?>
the type class
forType
,
String
the name of the option used on the command line
optionName
)

Obtain a converter instance for parsing parameter as type forType

Method Detail

getConverterInstanceback to summary
public IStringConverter<?> getConverterInstance(Parameter parameter, Class<?> forType, String optionName)

Obtain a converter instance for parsing parameter as type forType

Parameters
parameter:Parameter

the parameter to parse

forType:Class<?>

the type class

optionName:String

the name of the option used on the command line

Returns:IStringConverter<?>

a converter instance