<<

TITLE

AbstractParserFactory

AUTHOR

paramsan

NAME

AbstractParserFactory: A class that is used to construct Parser Objects.

SYNOPSIS

        use AbstractParser;
        use AbstractParserFactory;
        
        $qfcParser     = AbstractParserFactory->new("QFC");
        $allSpecials = $qfcParser->GetSpecials($zipCode);

REQUIRES

Perl5.10.0, QFCParser

EXPORTS

Nothing

DESCRIPTION

A class that is used to construct Parser Objects. All the objects constructed are guranteed to implement the AbstractParser interface.

CLASS VARIABLES

None

METHODS

new

Description

Construct and return a reference to a new concrete parser that actually implements the parser class.

Arguments

$storeName A string name representing the storename of which parser is requested. Currently only "QFC" is supported.

Returns

A reference to the requested parser.

If the parser with the storeName is not found, this method will die() with the error message "No parser implemented for store '$storeName'"

Usage

$qfcParser = AbstractParserFactory->new("QFC");

<<