|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ksu.cis.bnj.bbn.converter.xmlbif.XMLBifParser
Field Summary | |
protected BBNGraph |
graph
|
protected boolean |
isPRM
|
protected java.util.Hashtable |
nodeCache
|
protected boolean |
rowFirst
|
protected java.util.Hashtable |
valueCache
|
Constructor Summary | |
XMLBifParser()
|
Method Summary | |
protected java.lang.String |
getElementValue(org.w3c.dom.Node parent)
|
void |
initialize()
|
boolean |
isRowFirst()
|
BBNGraph |
load(java.io.InputStream stream)
|
static void |
main(java.lang.String[] args)
Driver for testing this parser |
protected java.lang.String |
mangleXMLString(java.lang.String s)
Escape the string s to oblige to the XML rules (e.g.: "'" becomes ', "&" becomes &, and so on). |
protected void |
parseProperty(java.lang.String s,
java.util.Hashtable prop)
Parse string property. |
void |
save(java.io.OutputStream stream,
BBNGraph graph)
Save routine for XML BIF. |
void |
setRowFirst(boolean rowFirst)
Sets the rowFirst. |
protected void |
visitDefinition(org.w3c.dom.Node parent)
|
void |
visitDocument(org.w3c.dom.Node parent)
|
void |
visitModel(org.w3c.dom.Node parent)
|
protected void |
visitPRMAttributeSet(org.w3c.dom.Node parent,
PRMClass prmClass)
|
PRMClass |
visitPRMClass(org.w3c.dom.Node parent)
|
protected BBNNode |
visitVariable(org.w3c.dom.Node parent)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected BBNGraph graph
protected java.util.Hashtable nodeCache
protected java.util.Hashtable valueCache
protected boolean rowFirst
protected boolean isPRM
Constructor Detail |
public XMLBifParser()
Method Detail |
public void initialize()
initialize
in interface Converter
Converter.initialize()
public void save(java.io.OutputStream stream, BBNGraph graph)
save
in interface Converter
Converter.save(java.io.OutputStream, edu.ksu.cis.bnj.bbn.BBNGraph)
public BBNGraph load(java.io.InputStream stream)
load
in interface Converter
Converter.load(java.io.InputStream)
public void visitDocument(org.w3c.dom.Node parent)
public void visitModel(org.w3c.dom.Node parent)
public PRMClass visitPRMClass(org.w3c.dom.Node parent)
protected void visitPRMAttributeSet(org.w3c.dom.Node parent, PRMClass prmClass)
protected BBNNode visitVariable(org.w3c.dom.Node parent)
protected void parseProperty(java.lang.String s, java.util.Hashtable prop)
s
- The property stringprop
- The property tableprotected void visitDefinition(org.w3c.dom.Node parent)
protected java.lang.String getElementValue(org.w3c.dom.Node parent)
protected java.lang.String mangleXMLString(java.lang.String s)
s
- The raw string
public static void main(java.lang.String[] args)
args
- public boolean isRowFirst()
public void setRowFirst(boolean rowFirst)
rowFirst
- The rowFirst to set
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |