|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.finra.jtaf.core.parsing.BaseParser
public abstract class BaseParser
I plan to scrap these parsers within a few releases to allow for a more flexible model. In particular, I want the plugins to be able to extend the behavior of the parser. For example, if we create a StarTeam plugin, then we will want to pull CR information from the tests and commands.
Constructor Summary | |
---|---|
BaseParser()
|
Method Summary | |
---|---|
protected List<Element> |
getChildElements(Element elem)
TODO: There is probably a more effective way to do this, but this does the trick for now |
protected Document |
getCurrentDocument()
|
MessageCollector |
getErrorCollector()
It is the caller's responsibility to print the log, if desired |
protected abstract void |
handleRoot(Element root)
Do whatever to the document root |
void |
parse(File f)
|
protected void |
reportUnexpectedElement(Element elem)
Generic method for printing unexpected element errors |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseParser() throws ParserConfigurationException
ParserConfigurationException
Method Detail |
---|
public final void parse(File f) throws ParsingException, SAXException, IOException
ParsingException
SAXException
IOException
protected abstract void handleRoot(Element root) throws ParsingException
root
-
ParsingException
protected final Document getCurrentDocument()
public final MessageCollector getErrorCollector()
protected final List<Element> getChildElements(Element elem)
elem
-
protected final void reportUnexpectedElement(Element elem)
elem
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |