edu.ucla.stat.SOCR.TG_distributome.xml
Class Distributome_XMLReader
java.lang.Object
org.xml.sax.helpers.DefaultHandler
edu.ucla.stat.SOCR.TG_distributome.xml.Distributome_XMLReader
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
public class Distributome_XMLReader
- extends org.xml.sax.helpers.DefaultHandler
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Distributome_XMLReader
public Distributome_XMLReader()
readXMLFile
public void readXMLFile(java.lang.String xmlURL)
readXMLFile
public void readXMLFile(java.lang.String xmlURL,
java.lang.String xsdURL)
readXMLFile
public void readXMLFile(java.net.URL xmlURL,
java.net.URL xsdURL)
hasError
public boolean hasError()
getErrorMsg
public java.lang.String getErrorMsg()
getVersion
public java.lang.String getVersion()
getNodeURLPrefix
public java.lang.String getNodeURLPrefix()
getFormulaDensityPrefix
public java.lang.String getFormulaDensityPrefix()
getNodes
public java.util.List getNodes()
getEdges
public java.util.List getEdges()
getFormulas
public java.util.List getFormulas()
getReferences
public java.util.List getReferences()
runExample
public void runExample(java.lang.String xmlURL)
error
public void error(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
- Specified by:
error
in interface org.xml.sax.ErrorHandler
- Overrides:
error
in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException
fatalError
public void fatalError(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
- Specified by:
fatalError
in interface org.xml.sax.ErrorHandler
- Overrides:
fatalError
in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException
warning
public void warning(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
- Specified by:
warning
in interface org.xml.sax.ErrorHandler
- Overrides:
warning
in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException
startElement
public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXParseException
- Specified by:
startElement
in interface org.xml.sax.ContentHandler
- Overrides:
startElement
in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXParseException
characters
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
- Specified by:
characters
in interface org.xml.sax.ContentHandler
- Overrides:
characters
in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException
endElement
public void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
- Specified by:
endElement
in interface org.xml.sax.ContentHandler
- Overrides:
endElement
in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException