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

Class TypeChecker

Known Subclasses:
BooleanChecker, BooleanOrNoneChecker, ChoiceChecker, EvalChecker, IntChecker, ReChecker, StringChecker, TimeChecker, TimeSpanChecker

Trivial base class for argument checkers
Method Summary
  __init__(self, typename, typeargs)
Initializes the TypeChecker.
varies check(self, arg)
Over-ridden by all the TypeChecker subclasses.

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)

check(self, arg)

Over-ridden by all the TypeChecker subclasses.
Parameters:
arg - the argument to check the type-hood and convert
           (type=string)
Returns:
the converted argument
           (type=varies)

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