Package lyntin :: 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.
  parseInto(self, key, val, argdict)
Populates the argument dictionary with the appropriate value.
    Inherited from Parser
varies parse(self, val)
Parses the value according to this parser and its associated Typechecker.
  setDefault(self, val)
Sets the default value for this Parser which is used when no other value is given.
  setTypeChecker(self, typechecker)
Sets the typechecker.

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)
Overrides:
lyntin.argparser.Parser.__init__

parseInto(self, key, val, argdict)

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

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