com.uc4.ara.collabnet.JArgs
Class CmdLineParser.Option.IntegerOption

java.lang.Object
  extended by com.uc4.ara.collabnet.JArgs.CmdLineParser.Option<java.lang.Integer>
      extended by com.uc4.ara.collabnet.JArgs.CmdLineParser.Option.IntegerOption
Enclosing class:
CmdLineParser.Option<T>

public static class CmdLineParser.Option.IntegerOption
extends CmdLineParser.Option<java.lang.Integer>

An option that expects an integer value


Nested Class Summary
 
Nested classes/interfaces inherited from class com.uc4.ara.collabnet.JArgs.CmdLineParser.Option
CmdLineParser.Option.BooleanOption, CmdLineParser.Option.DoubleOption, CmdLineParser.Option.IntegerOption, CmdLineParser.Option.LongOption, CmdLineParser.Option.StringOption
 
Constructor Summary
CmdLineParser.Option.IntegerOption(java.lang.String longForm, boolean required)
           
CmdLineParser.Option.IntegerOption(java.lang.String shortForm, java.lang.String longForm, boolean required)
           
 
Method Summary
protected  java.lang.Integer 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 com.uc4.ara.collabnet.JArgs.CmdLineParser.Option
getDefaultValue, getValue, isRequired, longForm, shortForm, wantsValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmdLineParser.Option.IntegerOption

public CmdLineParser.Option.IntegerOption(java.lang.String shortForm,
                                          java.lang.String longForm,
                                          boolean required)

CmdLineParser.Option.IntegerOption

public CmdLineParser.Option.IntegerOption(java.lang.String longForm,
                                          boolean required)
Method Detail

parseValue

protected java.lang.Integer 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<java.lang.Integer>
Throws:
CmdLineParser.IllegalOptionValueException


Copyright © 2004-2013. All Rights Reserved.