|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jess.xml.JessSAXParser
A SAX-based parser for JessML. Construct a JessSAXParser with a Rete object as an argument, then pass an InputSource to the parse() method. All the constructs and other code in the file will be installed into the Rete object.
JessSAXParser parser = new JessSAXParser(engine); parser.parse(new org.xml.sax.InputSource(new FileInputStream(filename));(C) 2006 Sandia National Laboratories
Rete.batch(java.lang.String)
Constructor Summary | |
JessSAXParser(Rete sink)
Constructor. |
|
JessSAXParser(Rete sink,
java.lang.String topLevelElement)
Constructor. |
Method Summary | |
void |
parse(org.xml.sax.InputSource source)
Parse a document full of JessML code. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JessSAXParser(Rete sink, java.lang.String topLevelElement) throws JessException
JessSAXHandler.RULEBASE
or JessSAXHandler.FACTLIST
.
sink
- the Rete object to receive any parsed constructstopLevelElement
- the name of the top-level element to expect
JessException
- if anything goes wrongpublic JessSAXParser(Rete sink) throws JessException
JessSAXHandler.RULEBASE
element.
sink
- the Rete object to receive any parsed constructs
JessException
- if anything goes wrongMethod Detail |
public void parse(org.xml.sax.InputSource source) throws JessException
source
- the input source
JessException
- if anything goes wrong
|
© 2007 Sandia Corporation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |