bpiwowar.argparser.holders
Class CharHolder

java.lang.Object
  extended by bpiwowar.argparser.handlers.Handler
      extended by bpiwowar.argparser.holders.Holder<Character>
          extended by bpiwowar.argparser.holders.CharHolder
All Implemented Interfaces:
Serializable

public class CharHolder
extends Holder<Character>
implements Serializable

Wrapper class which ``holds'' a character value, enabling methods to return character values through arguments.

See Also:
Serialized Form

Field Summary
 char value
          Value of the character, set and examined by the application as needed.
 
Constructor Summary
CharHolder()
          Constructs a new CharHolder with an initial value of 0.
CharHolder(char c)
          Constructs a new CharHolder with a specific initial value.
 
Method Summary
 Character getValue()
           
protected  void setValue(String argument)
           
 
Methods inherited from class bpiwowar.argparser.holders.Holder
parse
 
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
 

Field Detail

value

public char value
Value of the character, set and examined by the application as needed.

Constructor Detail

CharHolder

public CharHolder()
Constructs a new CharHolder with an initial value of 0.


CharHolder

public CharHolder(char c)
Constructs a new CharHolder with a specific initial value.

Parameters:
c - Initial character value.
Method Detail

getValue

public Character getValue()
Specified by:
getValue in class Holder<Character>

setValue

protected void setValue(String argument)
                 throws ArgParseException
Specified by:
setValue in class Holder<Character>
Throws:
ArgParseException


Copyright © 2013. All Rights Reserved.