|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbpiwowar.argparser.handlers.Handler
bpiwowar.argparser.handlers.GenericHandler
bpiwowar.argparser.handlers.GenericObjectsHandler
bpiwowar.argparser.handlers.ClassChooser
public class ClassChooser
A class chooser handler
Example of use
Nested Class Summary
static interface
ClassChooser.Choice
static interface
ClassChooser.Choices
Gives the reference to an enumeration of the possible choices.
static interface
ClassChooser.Instances
Defines a set of classes that should implement
If nothing is given, explores the inner classes
static interface
ClassChooser.Prefix
Deprecated.
static class
ClassChooser.TypeChecker
Field Summary
Fields inherited from class bpiwowar.argparser.handlers.GenericObjectsHandler
nbExpectedValues
Fields inherited from class bpiwowar.argparser.handlers.GenericHandler
field, object
Constructor Summary
ClassChooser(Object object,
Field field)
Initialisation of the class chooser
Method Summary
protected Object
getValue(ArgParser argParser,
String value)
void
setPrefix(String prefix)
Called by ArgParser when the argument had a prefix (to
handle the case of prefix chains)
Methods inherited from class bpiwowar.argparser.handlers.GenericObjectsHandler
addValue, get, getAnnotation, newInstance, optionSet, parse, process, process
Methods inherited from class bpiwowar.argparser.handlers.Handler
add, getLimitChecker, getLimitChecker, getRangeChecker, isHelpOption, processAnnotations, updateRangeChecker
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail
ClassChooser
public ClassChooser(Object object,
Field field)
object
- field
-
Method Detail
setPrefix
public void setPrefix(String prefix)
Handler
prefix
- The prefix
getValue
protected Object getValue(ArgParser argParser,
String value)
throws ArgParseException
getValue
in class GenericObjectsHandler
ArgParseException
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright © 2013. All Rights Reserved.