bpiwowar.argparser.handlers
Class EnumHandler

java.lang.Object
  extended by bpiwowar.argparser.handlers.Handler
      extended by bpiwowar.argparser.handlers.GenericHandler
          extended by bpiwowar.argparser.handlers.GenericObjectsHandler
              extended by bpiwowar.argparser.handlers.EnumHandler

public class EnumHandler
extends GenericObjectsHandler

Author:
bpiwowar

Field Summary
 
Fields inherited from class bpiwowar.argparser.handlers.GenericObjectsHandler
nbExpectedValues
 
Fields inherited from class bpiwowar.argparser.handlers.GenericHandler
field, object
 
Constructor Summary
EnumHandler(Object object, Field field)
           
 
Method Summary
 Set<String> getNames()
           
 Object process(ArgParser argParser, StringScanner scanner)
           
 void setValue(ArgParser argParser, String value)
           
 String toString()
           
 
Methods inherited from class bpiwowar.argparser.handlers.GenericObjectsHandler
addValue, get, getAnnotation, getValue, newInstance, optionSet, parse, process
 
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, wait, wait, wait
 

Constructor Detail

EnumHandler

public EnumHandler(Object object,
                   Field field)
Method Detail

getNames

public Set<String> getNames()

toString

public String toString()
Overrides:
toString in class Object

process

public Object process(ArgParser argParser,
                      StringScanner scanner)
               throws StringScanException
Overrides:
process in class GenericObjectsHandler
Throws:
StringScanException

setValue

public void setValue(ArgParser argParser,
                     String value)


Copyright © 2013. All Rights Reserved.