edu.ucla.stat.SOCR.TG_distributome.xml
Class Distributome_XMLReader

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by 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


Constructor Summary
Distributome_XMLReader()
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
           
 void error(org.xml.sax.SAXParseException exception)
           
 void fatalError(org.xml.sax.SAXParseException exception)
           
 java.util.List getEdges()
           
 java.lang.String getErrorMsg()
           
 java.lang.String getFormulaDensityPrefix()
           
 java.util.List getFormulas()
           
 java.util.List getNodes()
           
 java.lang.String getNodeURLPrefix()
           
 java.util.List getReferences()
           
 java.lang.String getVersion()
           
 boolean hasError()
           
 void readXMLFile(java.lang.String xmlURL)
           
 void readXMLFile(java.lang.String xmlURL, java.lang.String xsdURL)
           
 void readXMLFile(java.net.URL xmlURL, java.net.URL xsdURL)
           
 void runExample(java.lang.String xmlURL)
           
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
           
 void warning(org.xml.sax.SAXParseException exception)
           
 
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
 

Constructor Detail

Distributome_XMLReader

public Distributome_XMLReader()
Method Detail

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