org.omegahat.XML.Readers
Class BasicXMLDataFrameReader
java.lang.Object
|
+--org.omegahat.XML.Readers.DegenerateXMLDocumentHandler
|
+--org.omegahat.XML.Readers.BasicXMLDataFrameReader
- All Implemented Interfaces:
- org.xml.sax.DocumentHandler
- Direct Known Subclasses:
- XMLDataFrameByVariableReader, XMLDataFrameReader
- public abstract class BasicXMLDataFrameReader
- extends DegenerateXMLDocumentHandler
Implementation class providing common code and fields
for the different XML Data Frame readers in this package which work row and columnwise.
|
Field Summary |
protected java.lang.String |
currentVariableType
|
protected boolean |
expectingVariableName
|
protected java.lang.String[] |
factorLevels
|
protected java.util.Hashtable |
metaData
Used to store attribute lists for elements
that might store these as meta-data, allowing
additional properties to be stored with the
variable and dataset such as comments, source
of datasets, etc. |
java.lang.String |
ParserClass
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParserClass
public java.lang.String ParserClass
expectingVariableName
protected boolean expectingVariableName
factorLevels
protected java.lang.String[] factorLevels
currentVariableType
protected java.lang.String currentVariableType
metaData
protected java.util.Hashtable metaData
- Used to store attribute lists for elements
that might store these as meta-data, allowing
additional properties to be stored with the
variable and dataset such as comments, source
of datasets, etc.
BasicXMLDataFrameReader
public BasicXMLDataFrameReader()
BasicXMLDataFrameReader
public BasicXMLDataFrameReader(java.net.URL u)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
org.xml.sax.SAXException,
java.io.IOException
BasicXMLDataFrameReader
public BasicXMLDataFrameReader(java.io.File f)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
org.xml.sax.SAXException,
java.io.IOException
- Read the data from a file.
BasicXMLDataFrameReader
public BasicXMLDataFrameReader(java.lang.String s)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
org.xml.sax.SAXException,
java.io.IOException
endElement
public void endElement(java.lang.String name)
- Overrides:
endElement in class DegenerateXMLDocumentHandler
startElement
public void startElement(java.lang.String name,
org.xml.sax.AttributeList atts)
- Overrides:
startElement in class DegenerateXMLDocumentHandler
characters
public void characters(char[] ch,
int start,
int length)
- Overrides:
characters in class DegenerateXMLDocumentHandler
read
public boolean read(java.net.URL u)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
org.xml.sax.SAXException,
java.io.IOException
read
public boolean read(java.io.File f)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
org.xml.sax.SAXException,
java.io.IOException,
java.net.MalformedURLException
read
public boolean read(org.xml.sax.InputSource input)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
org.xml.sax.SAXException,
java.io.IOException
read
public boolean read(org.xml.sax.InputSource input,
org.xml.sax.Parser parser)
throws org.xml.sax.SAXException,
java.io.IOException
initializeVariable
public VariableInt initializeVariable(org.xml.sax.AttributeList atts)
createVariable
public VariableInt createVariable()
dataSet
public DataFrameInt dataSet()
dataSet
public DataFrameInt dataSet(DataFrameInt d)