Module argparser :: Class ExtraIndexParser
[show private | hide private]
[frames | no frames]

Class ExtraIndexParser

Parser --+
         |
        ExtraIndexParser


This class captures the parsing behaviour for an index collector. for each call to parseInto an entry is put into the list value in the argument dictionary.
Method Summary
  __init__(self, argparser, argname)
Initializes the Parser.
varies parse(self, val)
Parses the value according to this parser and its associated Typechecker. (inherited from Parser)
  parseInto(self, key, val, dict)
Populates the argument dictionary with the appropriate value.
  setDefault(self, val)
Sets the default value for this Parser which is used when no other value is given. (inherited from Parser)
  setTypeChecker(self, typechecker)
Sets the typechecker. (inherited from Parser)

Method Details

__init__(self, argparser, argname)
(Constructor)

Initializes the Parser.
Parameters:
argparser - the argparser instance this belongs to
           (type=argparser.ArgParser)
argname - the name of the argument this parser handles type and value checking for.
           (type=string)

parseInto(self, key, val, dict)

Populates the argument dictionary with the appropriate value.
Parameters:
key - the argument name
           (type=string)
val - the argument value
           (type=string)
dict - the argument dictionary to populate
           (type=dict)
Raises:
ParserException - if multiple values were given for the argument

Generated by Epydoc 1.1 on Mon Apr 28 21:11:24 2003 http://epydoc.sf.net