bpiwowar.argparser.handlers
Class StringCollectionHandler

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.StringCollectionHandler

public class StringCollectionHandler
extends GenericObjectsHandler

Convert a comma separated list into an array

Author:
bpiwowar

Nested Class Summary
static interface StringCollectionHandler.Options
          Used to give a separator different than the comma
static class StringCollectionHandler.TypeChecker
           
 
Field Summary
 
Fields inherited from class bpiwowar.argparser.handlers.GenericObjectsHandler
nbExpectedValues
 
Fields inherited from class bpiwowar.argparser.handlers.GenericHandler
field, object
 
Constructor Summary
StringCollectionHandler(Object object, Field field, Class<?> aClass)
           
 
Method Summary
 String getValue()
           
 Object process(ArgParser argParser, StringScanner scanner)
           
 
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, toString, wait, wait, wait
 

Constructor Detail

StringCollectionHandler

public StringCollectionHandler(Object object,
                               Field field,
                               Class<?> aClass)
Method Detail

getValue

public String getValue()

process

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


Copyright © 2013. All Rights Reserved.