org.anadix
Interface Parser

All Known Implementing Classes:
SwingParser

public interface Parser

Class used to parse the source. The class has a few purposes:

where

Version:
$Id: $
Author:
tomason

Method Summary
 Collection<DroolsResource> getDroolsResources()
          Returns resources (typically DRL files) used by Drools engine to process parser output.
 Class<? extends ElementFactory> getElementFactoryClass()
          Returns class implementing ElementFactory that is used to insert elements into Drools working memory
 void parse(ElementFactory factory, Source source)
          Parses given source and inserts Elements through ElementFactory
 

Method Detail

parse

void parse(ElementFactory factory,
           Source source)
           throws ParserException
Parses given source and inserts Elements through ElementFactory

Parameters:
factory - - ElementFactory to be used
source - - source to parse
Throws:
ParserException - - when something goes wrong during parsing

getDroolsResources

Collection<DroolsResource> getDroolsResources()
Returns resources (typically DRL files) used by Drools engine to process parser output. If no such resources are used this method returns empty collection

Returns:
collection of DroolsResources

getElementFactoryClass

Class<? extends ElementFactory> getElementFactoryClass()
Returns class implementing ElementFactory that is used to insert elements into Drools working memory

Returns:
instance of Class


Copyright © 2011. All Rights Reserved.