org.anadix.swingparser
Class SwingParser
java.lang.Object
org.anadix.swingparser.SwingParser
- All Implemented Interfaces:
- Parser
public class SwingParser
- extends Object
- implements Parser
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.
- Version:
- $Id: $
- Author:
- tomason
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SwingParser
public SwingParser()
- Constructor
parse
public void parse(ElementFactory factory,
Source source)
throws ParserException
-
- Specified by:
parse in interface Parser
- Throws:
ParserException
getDroolsResources
public Collection<DroolsResource> getDroolsResources()
-
- Specified by:
getDroolsResources in interface Parser
getElementFactoryClass
public Class<? extends ElementFactory> getElementFactoryClass()
-
- Specified by:
getElementFactoryClass in interface Parser
Copyright © 2011. All Rights Reserved.