bpiwowar.argparser.holders
Class Holder<T>

java.lang.Object
  extended by bpiwowar.argparser.handlers.Handler
      extended by bpiwowar.argparser.holders.Holder<T>
Direct Known Subclasses:
BooleanHolder, CharHolder, DoubleHolder, FloatHolder, IntHolder, StringHolder

public abstract class Holder<T>
extends Handler

Author:
bpiwowar

Constructor Summary
Holder()
           
 
Method Summary
abstract  T getValue()
           
 int parse(ArgParser argParser, String[] args, int idx)
          Parse the arguments from the current index
protected abstract  void setValue(String argument)
           
 
Methods inherited from class bpiwowar.argparser.handlers.Handler
add, getLimitChecker, getLimitChecker, getRangeChecker, isHelpOption, processAnnotations, setPrefix, updateRangeChecker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Holder

public Holder()
Method Detail

parse

public int parse(ArgParser argParser,
                 String[] args,
                 int idx)
          throws ArgParseException
Description copied from class: Handler
Parse the arguments from the current index

Specified by:
parse in class Handler
Parameters:
argParser - the argument parser
args - The set of arguments
idx - The index of the next argument at process
Throws:
ArgParseException

setValue

protected abstract void setValue(String argument)
                          throws ArgParseException
Throws:
ArgParseException

getValue

public abstract T getValue()


Copyright © 2013. All Rights Reserved.