bpiwowar.argparser.holders
Class Holder<T>
java.lang.Object
bpiwowar.argparser.handlers.Handler
bpiwowar.argparser.holders.Holder<T>
- Direct Known Subclasses:
- BooleanHolder, CharHolder, DoubleHolder, FloatHolder, IntHolder, StringHolder
public abstract class Holder<T>
- extends Handler
- Author:
- bpiwowar
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Holder
public Holder()
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 parserargs
- The set of argumentsidx
- 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.