|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.anadix.swingparser.SwingParser
public class SwingParser
Parser implementation based on parser from package javax.swing.text.html.parser. Uses set of rules to recognize different tags and HTMLElementFactory to insert those tags into working memory. Rules are created from a template (rule-template.drt) and different tag names are stored in tags.csv. There are also some common rules (swingparser.drl) to manipulate tags position and source.
| Constructor Summary | |
|---|---|
SwingParser()
Constructor |
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SwingParser()
| Method Detail |
|---|
public void parse(ElementFactory factory,
Source source)
throws ParserException
parse in interface Parserfactory - - ElementFactory to be usedsource - - source to parse
ParserException - - when something goes wrong during parsingpublic Collection<DroolsResource> getDroolsResources()
getDroolsResources in interface Parserpublic Class<? extends ElementFactory> getElementFactoryClass()
getElementFactoryClass in interface Parser
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||