bpiwowar.argparser.handlers
Class IntHandler

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.IntegerHandler
                  extended by bpiwowar.argparser.handlers.IntHandler

public class IntHandler
extends IntegerHandler

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
IntHandler(Object object, Field field)
           
 
Method Summary
 Limit getLimitChecker(StringScanner scanner)
          Gets a new limit checker
 int getValue()
           
 Object process(ArgParser argParser, StringScanner scanner)
           
 void setValue(int value)
           
 
Methods inherited from class bpiwowar.argparser.handlers.IntegerHandler
scanInteger, setRadix
 
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, 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

IntHandler

public IntHandler(Object object,
                  Field field)
Method Detail

process

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

getValue

public int getValue()

setValue

public void setValue(int value)

getLimitChecker

public Limit getLimitChecker(StringScanner scanner)
                      throws IllegalArgumentException,
                             StringScanException
Description copied from class: Handler
Gets a new limit checker

Overrides:
getLimitChecker in class Handler
Returns:
a new limit checker
Throws:
StringScanException
IllegalArgumentException


Copyright © 2013. All Rights Reserved.