This class is used to parse data set encoded as (abused) XML file.
This is a DOM implementation. I did this because I don't want to convert
the file by hand.
- Version:
- 0.1.0
- Author:
- Roby Joehanes
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
db
protected Database db
tuples
protected Table tuples
isPRM
protected boolean isPRM
rKeys
protected java.util.LinkedList rKeys
pKeys
protected java.util.LinkedList pKeys
XMLDataParser
public XMLDataParser()
initialize
public void initialize()
- Specified by:
initialize
in interface Converter
- See Also:
Converter.initialize()
save
public void save(java.io.OutputStream stream,
Database db)
- Specified by:
save
in interface Converter
load
public Database load(java.io.InputStream stream)
- Specified by:
load
in interface Converter
- See Also:
Converter.load(java.io.InputStream)
visitDocument
public void visitDocument(org.w3c.dom.Node parent)
visitModel
public void visitModel(org.w3c.dom.Node parent)
visitPRMClass
public void visitPRMClass(org.w3c.dom.Node parent)
visitPRMAttributeSet
protected void visitPRMAttributeSet(org.w3c.dom.Node parent)
visitVariable
protected Attribute visitVariable(org.w3c.dom.Node parent)
visitSamples
public void visitSamples(org.w3c.dom.Node parent)
visitSampleSet
protected Tuple visitSampleSet(org.w3c.dom.Node parent)
getElementValue
protected java.lang.String getElementValue(org.w3c.dom.Node parent)