ru.onego.industrial.catalog.parsers
Interface DataParser


public interface DataParser

Basic interface for all data parsers.

The core method is parse. It takes list of objects, treats them in some predifined way and the returns Catalog object. This data is used then to build final catalog, each line from this Catalog beeing added to the lines of final catalog with the same identifier. Thus all parsers should use the same identifier to indicate they are returning the same line of catalog data.

Version:
1.0
Author:
Lev Levin

Method Summary
 java.lang.String getName()
          Returns describtion of this data parser used by JCatalog engine to inform user about loaded parsers.
 Catalog parse(java.util.List objects)
          Returns catalog obtained from the given list of objects.
 

Method Detail

getName

java.lang.String getName()
Returns describtion of this data parser used by JCatalog engine to inform user about loaded parsers.

Returns:
Small describtion of the parser

parse

Catalog parse(java.util.List objects)
              throws ParserException
Returns catalog obtained from the given list of objects.

Parameters:
objects - List of objects to be parsed in order to build catalog data
Returns:
Object, which implements Catalog interface
Throws:
ParserException - If any internal parsing error occures