Package lyntin :: Module argparser :: Class IntChecker
[show private | hide private]
[frames | no frames]

Class IntChecker

TypeChecker --+
              |
             IntChecker


Accept only integer values and return integer objects.
Method Summary
  __init__(self, typename, typeargs)
Initializes the TypeChecker.
int check(self, arg)
Verifies the arg is of type int and converts it to an int.

Method Details

__init__(self, typename, typeargs)
(Constructor)

Initializes the TypeChecker. Over-ridden by all the TypeChecker subclasses.
Parameters:
typename - the name of the type
           (type=string)
typeargs - the arguments passed to the TypeChecker to initialize it
           (type=tuple)
Raises:
ParserException - If typeargs are passed in--this is non-configurable.
Overrides:
lyntin.argparser.TypeChecker.__init__

check(self, arg)

Verifies the arg is of type int and converts it to an int.
Parameters:
arg - the argument to check the type-hood and convert
           (type=string)
Returns:
the converted argument from string to int
           (type=int)
Overrides:
lyntin.argparser.TypeChecker.check

Generated by Epydoc 2.1 on Mon Aug 9 09:17:41 2004 http://epydoc.sf.net