jargs.gnu

Class CmdLineParser.Option.StringOption

Enclosing Class:
CmdLineParser.Option

public static class CmdLineParser.Option.StringOption
extends CmdLineParser.Option

An option that expects a string value

Nested Class Summary

Nested classes/interfaces inherited from class jargs.gnu.CmdLineParser.Option

CmdLineParser.Option.BooleanOption, CmdLineParser.Option.DoubleOption, CmdLineParser.Option.IntegerOption, CmdLineParser.Option.LongOption, CmdLineParser.Option.StringOption

Constructor Summary

StringOption(String longForm)
StringOption(char shortForm, String longForm)

Method Summary

protected Object
parseValue(String arg, Locale locale)
Override to extract and convert an option value passed on the command-line

Methods inherited from class jargs.gnu.CmdLineParser.Option

getValue, longForm, parseValue, shortForm, wantsValue

Constructor Details

StringOption

public StringOption(String longForm)

StringOption

public StringOption(char shortForm,
                    String longForm)

Method Details

parseValue

protected Object parseValue(String arg,
                            Locale locale)
Override to extract and convert an option value passed on the command-line
Overrides:
parseValue in interface CmdLineParser.Option

Copyright © 2001-2003 Steve Purcell. Copyright © 2002 Vidar Holen. Copyright © 2002 Michal Ceresna. Copyright © 2005 Ewan Mellor. Released under the terms of the BSD licence.