For updates and more see jargs.sourceforge.net

jargs.examples.gnu
Class CustomOptionTest.ShortDateOption

java.lang.Object
  extended by jargs.gnu.CmdLineParser.Option
      extended by jargs.examples.gnu.CustomOptionTest.ShortDateOption
Enclosing class:
CustomOptionTest

public static class CustomOptionTest.ShortDateOption
extends CmdLineParser.Option

A custom type of command line option corresponding to a short date value, e.g. .


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
CustomOptionTest.ShortDateOption(char shortForm, java.lang.String longForm)
           
 
Method Summary
protected  java.lang.Object parseValue(java.lang.String arg, java.util.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, shortForm, wantsValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomOptionTest.ShortDateOption

public CustomOptionTest.ShortDateOption(char shortForm,
                                        java.lang.String longForm)
Method Detail

parseValue

protected java.lang.Object parseValue(java.lang.String arg,
                                      java.util.Locale locale)
                               throws CmdLineParser.IllegalOptionValueException
Description copied from class: CmdLineParser.Option
Override to extract and convert an option value passed on the command-line

Overrides:
parseValue in class CmdLineParser.Option
Throws:
CmdLineParser.IllegalOptionValueException

For updates and more see jargs.sourceforge.net

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.